Explorar el Código

Fix missing lock of player interface

Ivan Savenko hace 2 años
padre
commit
631e93e846
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      client/gui/CGuiHandler.cpp

+ 2 - 0
client/gui/CGuiHandler.cpp

@@ -88,6 +88,8 @@ void CGuiHandler::handleEvents()
 void CGuiHandler::fakeMouseMove()
 {
 	dispatchMainThread([](){
+		assert(CPlayerInterface::pim);
+		boost::unique_lock lock(*CPlayerInterface::pim);
 		GH.events().dispatchMouseMoved(Point(0, 0), GH.getCursorPosition());
 	});
 }