Skip to content

Commit

Permalink
Fix getObjectProperty "air_resistance" property (#3714)
Browse files Browse the repository at this point in the history
Update CLuaObjectDefs.cpp
  • Loading branch information
FileEX authored Sep 12, 2024
1 parent 6e127fd commit b51e111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/luadefs/CLuaObjectDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ int CLuaObjectDefs::GetObjectProperty(lua_State* luaVM)
lua_setfield(luaVM, -2, EnumToString(eObjectProperty::OBJECT_PROPERTY_TURNMASS));

lua_pushnumber(luaVM, pObject->GetAirResistance());
lua_setfield(luaVM, -2, EnumToString(eObjectProperty::OBJECT_PROPERTY_TURNMASS));
lua_setfield(luaVM, -2, EnumToString(eObjectProperty::OBJECT_PROPERTY_AIRRESISTANCE));

lua_pushnumber(luaVM, pObject->GetElasticity());
lua_setfield(luaVM, -2, EnumToString(eObjectProperty::OBJECT_PROPERTY_ELASTICITY));
Expand Down

0 comments on commit b51e111

Please sign in to comment.