瀏覽代碼

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)
 	if(currentCallFromIngameConsole)
 	{
 	{
+		boost::unique_lock<boost::recursive_mutex> un(*CPlayerInterface::pim);
 		if(LOCPLINT && LOCPLINT->cingconsole)
 		if(LOCPLINT && LOCPLINT->cingconsole)
 		{
 		{
 			LOCPLINT->cingconsole->print(commandMessage);
 			LOCPLINT->cingconsole->print(commandMessage);