2
0
Эх сурвалжийг харах

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

Ivan Savenko 1 жил өмнө
parent
commit
01697e4387
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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)