Browse Source

Fixed race condition

AlexVinS 8 years ago
parent
commit
bc626c2446
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AI/VCAI/VCAI.cpp

+ 1 - 1
AI/VCAI/VCAI.cpp

@@ -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();
 	}
 }