1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Possible deadlock fixed.

This commit is contained in:
Michał W. Urbańczyk 2010-05-31 23:53:35 +00:00
parent 068350a781
commit 124f0dd401

View File

@ -1267,11 +1267,7 @@ void CPlayerInterface::update()
if(terminate_cond.get())
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(dialogs.size() && !showingDialog->get())
{
@ -1280,6 +1276,10 @@ void CPlayerInterface::update()
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.handleEvents();