mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
@@ -1207,9 +1207,10 @@ bool CPlayerInterface::moveHero( const CGHeroInstance *h, CGPath path )
|
||||
bool result = false; //TODO why not set to true anywhere?
|
||||
{
|
||||
//evil...
|
||||
|
||||
auto unlockEvents = vstd::makeUnlockGuard(eventsM);
|
||||
auto unlockGs = vstd::makeUnlockSharedGuard(cb->getGsMutex()); //GS mutex is above PIM because CClient::run thread first locks PIM and then GS -> so this way we avoid deadlocks
|
||||
auto unlockPim = vstd::makeUnlockGuard(*pim);
|
||||
auto unlockGs = vstd::makeUnlockSharedGuard(cb->getGsMutex());
|
||||
|
||||
{
|
||||
path.convert(0);
|
||||
|
Reference in New Issue
Block a user