Browse Source

Fix player not being marked as defeated on losing all heroes and towns

Ivan Savenko 1 year ago
parent
commit
01697e4387
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/CPlayerState.h

+ 1 - 1
lib/CPlayerState.h

@@ -104,7 +104,7 @@ public:
 
 	bool checkVanquished() const
 	{
-		return ownedObjects.empty();
+		return getHeroes().empty() && getTowns().empty();
 	}
 
 	template <typename Handler> void serialize(Handler &h)