From 5ba67ca6c6c753d92d3758389942cf68e1610353 Mon Sep 17 00:00:00 2001 From: Dregu Date: Mon, 13 Nov 2023 19:02:26 +0200 Subject: [PATCH] fix deprecated game_props.buttons --- src/game_api/script/usertypes/game_manager_lua.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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",