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:
parent
644d6f4529
commit
01697e4387
@ -104,7 +104,7 @@ public:
|
||||
|
||||
bool checkVanquished() const
|
||||
{
|
||||
return ownedObjects.empty();
|
||||
return getHeroes().empty() && getTowns().empty();
|
||||
}
|
||||
|
||||
template <typename Handler> void serialize(Handler &h)
|
||||
|
Loading…
Reference in New Issue
Block a user