AAI v0.2 Test release
Moderators: hoijui, Moderators
Submarine, looking through the ported code I copied to NTAI I noticed that there's a possible divide by zero error in AAI.
There's a bit where you get a float3 position then you do some divides based on it but you havent done any checks to see if the returned position is an error value such as UpVector(0,-1,0) or ZeroVector(0,0,0). As a result when you do the likes of pos.x/xSize you're doing 0/Xsize and generating exceptions.
There's a bit where you get a float3 position then you do some divides based on it but you havent done any checks to see if the returned position is an error value such as UpVector(0,-1,0) or ZeroVector(0,0,0). As a result when you do the likes of pos.x/xSize you're doing 0/Xsize and generating exceptions.