Skip to content

Commit

Permalink
Lua: fix IConsoleCommand::execute
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jul 5, 2024
1 parent c1c7f31 commit 958e2b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua-api/lib/src/ScriptContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,9 @@ int ScriptContext::setup_bindings() {

m_lua.new_usertype<uevr::API::IConsoleCommand>("UEVR_IConsoleCommand",
sol::base_classes, sol::bases<uevr::API::IConsoleObject>(),
"execute", &uevr::API::IConsoleCommand::execute
"execute", [](uevr::API::IConsoleCommand& self, const std::wstring& args) {
self.execute(args);
}
);

m_lua.new_usertype<uevr::API::FUObjectArray>("UEVR_FUObjectArray",
Expand Down

0 comments on commit 958e2b5

Please sign in to comment.