Explorar o código

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

Ivan Savenko hai 1 ano
pai
achega
01697e4387
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)