mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix situation around aabbox3d default constructor (#15586)
Co-authored-by: JosiahWI <41302989+JosiahWI@users.noreply.github.com>
This commit is contained in:
@@ -326,7 +326,8 @@ bool is_color_table(lua_State *L, int index)
|
||||
|
||||
aabb3f read_aabb3f(lua_State *L, int index, f32 scale)
|
||||
{
|
||||
aabb3f box;
|
||||
// default value for accidental/historical reasons
|
||||
aabb3f box{-1.0f, -1.0f, -1.0f, 1.0f, 1.0f, 1.0f};
|
||||
if(lua_istable(L, index)){
|
||||
lua_rawgeti(L, index, 1);
|
||||
box.MinEdge.X = lua_tonumber(L, -1) * scale;
|
||||
|
Reference in New Issue
Block a user