Browse Source

Merge pull request #5677 from kdmcser/hang_fix

fix hangs after a siege battle
Ivan Savenko 6 months ago
parent
commit
90e765b2be
1 changed files with 1 additions and 1 deletions
  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);
 	}
 }