1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

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

This commit is contained in:
Ivan Savenko 2024-08-30 12:25:34 +00:00
parent 644d6f4529
commit 01697e4387

View File

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