Recast: fix bug in rdVisfinite2D (XZY -> XYZ)

Should be checking the x-y plane instead, issue was spotted during the creation of commit 5f90ea08f210e8a327e70e48afc770404f850fda.
This commit is contained in:
Kawe Mazidjatari 2024-07-15 19:31:48 +02:00
parent 5f90ea08f2
commit 5a09fc39c8

View File

@ -301,7 +301,7 @@ inline bool rdVisfinite(const float* v)
/// @param[in] v A point. [(x, y, z)]
inline bool rdVisfinite2D(const float* v)
{
bool result = rdMathIsfinite(v[0]) && rdMathIsfinite(v[2]);
bool result = rdMathIsfinite(v[0]) && rdMathIsfinite(v[1]);
return result;
}