Paint.cpp: execute single command from command stack on Paint
Possible workaround for crash that happens with very low amount of free memory available
This commit is contained in:
parent
812e3fc552
commit
05c9827f43
@ -58,13 +58,10 @@ DEFINE_HOOKED_METHOD(Paint, void, IEngineVGui *this_, PaintMode_t mode)
|
||||
{
|
||||
PROF_SECTION(PT_command_stack);
|
||||
std::lock_guard<std::mutex> 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);
|
||||
|
Reference in New Issue
Block a user