فهرست منبع

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

Ivan Savenko 1 سال پیش
والد
کامیت
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)