From 958e2b55d67d4b01ec034338b43fddbca12f13b1 Mon Sep 17 00:00:00 2001 From: praydog Date: Fri, 5 Jul 2024 07:14:43 -0700 Subject: [PATCH] Lua: fix IConsoleCommand::execute --- lua-api/lib/src/ScriptContext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua-api/lib/src/ScriptContext.cpp b/lua-api/lib/src/ScriptContext.cpp index dbc890b0..db8a45f5 100644 --- a/lua-api/lib/src/ScriptContext.cpp +++ b/lua-api/lib/src/ScriptContext.cpp @@ -527,7 +527,9 @@ int ScriptContext::setup_bindings() { m_lua.new_usertype("UEVR_IConsoleCommand", sol::base_classes, sol::bases(), - "execute", &uevr::API::IConsoleCommand::execute + "execute", [](uevr::API::IConsoleCommand& self, const std::wstring& args) { + self.execute(args); + } ); m_lua.new_usertype("UEVR_FUObjectArray",