From fb0fb191e7f0e24515565a65defe882dc22c5560 Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 28 Jul 2023 13:59:22 +0200 Subject: [PATCH] fix(lua): input_float:get_value() was returning the wrong type (#1879) --- src/lua/bindings/gui/input_float.cpp | 2 +- src/lua/bindings/gui/input_float.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua/bindings/gui/input_float.cpp b/src/lua/bindings/gui/input_float.cpp index f0e6bde5..01aaa003 100644 --- a/src/lua/bindings/gui/input_float.cpp +++ b/src/lua/bindings/gui/input_float.cpp @@ -12,7 +12,7 @@ namespace lua::gui ImGui::InputFloat(m_text.c_str(), &m_value); } - int input_float::get_value() + float input_float::get_value() { return m_value; } diff --git a/src/lua/bindings/gui/input_float.hpp b/src/lua/bindings/gui/input_float.hpp index 5b60b9d8..aee751ee 100644 --- a/src/lua/bindings/gui/input_float.hpp +++ b/src/lua/bindings/gui/input_float.hpp @@ -21,7 +21,7 @@ namespace lua::gui // Class: input_float // Name: get_value // Returns: float: Get the value currently written inside the input field. - int get_value(); + float get_value(); // Lua API: Function // Class: input_float