mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Reject NaN and Inf in check_v3d() too
check_v2f() was already doing this
This commit is contained in:
@@ -199,6 +199,9 @@ v3d check_v3d(lua_State *L, int index)
|
||||
double y = lua_tonumber(L, -2);
|
||||
double z = lua_tonumber(L, -1);
|
||||
lua_pop(L, 3);
|
||||
CHECK_FLOAT(x, "x");
|
||||
CHECK_FLOAT(y, "y");
|
||||
CHECK_FLOAT(z, "z");
|
||||
return v3d(x, y, z);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user