浏览代码

Add GUI lock

Dydzio 2 年之前
父节点
当前提交
91a52ebb8e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      client/ClientCommandManager.cpp

+ 1 - 0
client/ClientCommandManager.cpp

@@ -487,6 +487,7 @@ void ClientCommandManager::printCommandMessage(const std::string &commandMessage
 
 	if(currentCallFromIngameConsole)
 	{
+		boost::unique_lock<boost::recursive_mutex> un(*CPlayerInterface::pim);
 		if(LOCPLINT && LOCPLINT->cingconsole)
 		{
 			LOCPLINT->cingconsole->print(commandMessage);