diff --git a/src/hooks/Paint.cpp b/src/hooks/Paint.cpp index 407c2239..ad500c54 100644 --- a/src/hooks/Paint.cpp +++ b/src/hooks/Paint.cpp @@ -58,13 +58,10 @@ DEFINE_HOOKED_METHOD(Paint, void, IEngineVGui *this_, PaintMode_t mode) { PROF_SECTION(PT_command_stack); std::lock_guard guard(hack::command_stack_mutex); - while (!hack::command_stack().empty()) - { - // logging::Info("executing %s", - // hack::command_stack().top().c_str()); - g_IEngine->ClientCmd_Unrestricted(hack::command_stack().top().c_str()); - hack::command_stack().pop(); - } + // logging::Info("executing %s", + // hack::command_stack().top().c_str()); + g_IEngine->ClientCmd_Unrestricted(hack::command_stack().top().c_str()); + hack::command_stack().pop(); } #if ENABLE_TEXTMODE_STDIN == 1 static auto last_stdin = std::chrono::system_clock::from_time_t(0);