We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bdf495 commit 2c3593bCopy full SHA for 2c3593b
src/script/lua_api/l_object.cpp
@@ -1409,7 +1409,7 @@ int ObjectRef::l_set_physics_override(lua_State *L)
1409
{
1410
NO_MAP_LOCK_REQUIRED;
1411
ObjectRef *ref = checkobject(L, 1);
1412
- PlayerSAO *playersao = (PlayerSAO *) getobject(ref);
+ PlayerSAO *playersao = getplayersao(ref);
1413
if (playersao == nullptr)
1414
return 0;
1415
@@ -1449,7 +1449,7 @@ int ObjectRef::l_get_physics_override(lua_State *L)
1449
1450
1451
1452
- PlayerSAO *playersao = (PlayerSAO *)getobject(ref);
1453
1454
1455
0 commit comments