From 64e8e8c0378b55bc31904637ff6a197a819a1e51 Mon Sep 17 00:00:00 2001 From: praydog <praydog@praydog.com> Date: Sun, 16 Jun 2024 21:26:58 -0700 Subject: [PATCH] Lua: Fix incorrect return value --- lua-api/lib/src/ScriptContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua-api/lib/src/ScriptContext.cpp b/lua-api/lib/src/ScriptContext.cpp index dae13b02..88ca0d42 100644 --- a/lua-api/lib/src/ScriptContext.cpp +++ b/lua-api/lib/src/ScriptContext.cpp @@ -431,7 +431,7 @@ sol::object call_function(sol::this_state s, uevr::API::UObject* self, uevr::API if (return_prop != nullptr) { if (ret_is_bool) { - return sol::make_object(s, ((uevr::API::FBoolProperty*)return_prop)->get_value_from_propbase(params.data())); + return sol::make_object(s, ((uevr::API::FBoolProperty*)return_prop)->get_value_from_object(params.data())); } return prop_to_object(s, params.data(), return_prop);