mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-24 03:47:18 +02:00
Fix missing lock of player interface
This commit is contained in:
parent
942f8bbf05
commit
631e93e846
@ -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());
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user