mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fixed race condition
This commit is contained in:
parent
2c525fc76e
commit
bc626c2446
@ -778,7 +778,6 @@ void VCAI::makeTurn()
|
||||
markHeroAbleToExplore (primaryHero());
|
||||
|
||||
makeTurnInternal();
|
||||
makingTurn.reset();
|
||||
|
||||
return;
|
||||
}
|
||||
@ -2786,6 +2785,7 @@ void VCAI::finish()
|
||||
{
|
||||
makingTurn->interrupt();
|
||||
makingTurn->join();
|
||||
makingTurn.reset();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user