mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-21 12:06:49 +02:00
Possible deadlock fixed.
This commit is contained in:
parent
068350a781
commit
124f0dd401
@ -1268,10 +1268,6 @@ void CPlayerInterface::update()
|
|||||||
if(terminate_cond.get())
|
if(terminate_cond.get())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//in some conditions we may receive calls before selection is initialized - we must ignore them
|
|
||||||
if(!adventureInt->selection)
|
|
||||||
return;
|
|
||||||
|
|
||||||
//if there are any waiting dialogs, show them
|
//if there are any waiting dialogs, show them
|
||||||
if(dialogs.size() && !showingDialog->get())
|
if(dialogs.size() && !showingDialog->get())
|
||||||
{
|
{
|
||||||
@ -1280,6 +1276,10 @@ void CPlayerInterface::update()
|
|||||||
dialogs.pop_front();
|
dialogs.pop_front();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//in some conditions we may receive calls before selection is initialized - we must ignore them
|
||||||
|
if(!adventureInt->selection && GH.topInt() == adventureInt)
|
||||||
|
return;
|
||||||
|
|
||||||
GH.updateTime();
|
GH.updateTime();
|
||||||
GH.handleEvents();
|
GH.handleEvents();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user