Parcourir la source

fix hangs after a siege battle

kdmcser il y a 6 mois
Parent
commit
50887a4f30
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/mapObjects/CGTownInstance.cpp

+ 1 - 1
lib/mapObjects/CGTownInstance.cpp

@@ -644,7 +644,7 @@ void CGTownInstance::clearArmy() const
 {
 	while(!stacks.empty())
 	{
-		cb->eraseStack(StackLocation(id, stacks.begin()->first));
+		cb->eraseStack(StackLocation(id, stacks.begin()->first), true);
 	}
 }