Skip to content

Commit

Permalink
Lua: Fix incorrect return value
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jun 17, 2024
1 parent 43859e5 commit 64e8e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua-api/lib/src/ScriptContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 64e8e8c

Please sign in to comment.