Browse Source

Fix missing lock of player interface

Ivan Savenko 2 years ago
parent
commit
631e93e846
1 changed files with 2 additions and 0 deletions
  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());
 	});
 }