From ace7aaada744d71bc00f9493f05efdbedf7ae668 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Thu, 3 Mar 2022 12:38:23 +0100 Subject: [PATCH] Fix issue which caused assignments and similar lua code to not work in the console --- src/TConsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index 6d20a7e..18af61d 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -543,7 +543,7 @@ TConsole::TConsole() { } else if (!cmd.empty() && cmd.at(0) == ':') { HandleLuaInternalCommand(cmd.substr(1)); } else { - auto Future = mLuaEngine->EnqueueScript(mStateId, { std::make_shared(cmd), "", "" }); + auto Future = mLuaEngine->EnqueueScript(mStateId, { std::make_shared(TrimmedCmd), "", "" }); while (!Future->Ready) { std::this_thread::yield(); // TODO: Add a timeout }