diff --git a/src/game_api/script/usertypes/game_manager_lua.cpp b/src/game_api/script/usertypes/game_manager_lua.cpp index 49db89737..2587075d5 100644 --- a/src/game_api/script/usertypes/game_manager_lua.cpp +++ b/src/game_api/script/usertypes/game_manager_lua.cpp @@ -107,10 +107,8 @@ void register_usertypes(sol::state& lua) "GameProps", /// NoDoc "buttons", - [](GameProps& gp) -> uint32_t - { - return gp.buttons[0]; - }, + sol::property([](GameProps& gp) -> uint32_t + { return gp.buttons[0]; }), "input", &GameProps::buttons, "input_previous",