From 5501882d75bd313d2440e65eb7957a44f89ba758 Mon Sep 17 00:00:00 2001 From: praydog Date: Tue, 5 Mar 2024 21:13:47 -0800 Subject: [PATCH] Lua: Fix execute_command not working --- 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 9a585115..d5f28f0f 100644 --- a/lua-api/lib/src/ScriptContext.cpp +++ b/lua-api/lib/src/ScriptContext.cpp @@ -450,7 +450,7 @@ int ScriptContext::setup_bindings() { "get_player_controller", &uevr::API::get_player_controller, "get_local_pawn", &uevr::API::get_local_pawn, "spawn_object", &uevr::API::spawn_object, - "execute_command", &uevr::API::execute_command, + "execute_command", [](uevr::API* api, std::string s) { api->execute_command(utility::widen(s).data()); }, "execute_command_ex", &uevr::API::execute_command_ex, "get_uobject_array", &uevr::API::get_uobject_array, "get_console_manager", &uevr::API::get_console_manager