Don't try to execute empty lines

This commit is contained in:
Lwmte 2025-03-22 09:57:25 +01:00
parent 075c438b5d
commit d47e8d0e69

View file

@ -251,6 +251,9 @@ unsigned CALLBACK ConsoleInput(void*)
if (!std::getline(std::cin, input))
break;
if (std::regex_match(input, std::regex("^\\s*$")))
continue;
if (g_GameScript == nullptr)
{
TENLog("Scripting engine not initialized.", LogLevel::Error);