mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-15 11:46:56 +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
|
bool checkVanquished() const
|
||||||
{
|
{
|
||||||
return ownedObjects.empty();
|
return getHeroes().empty() && getTowns().empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Handler> void serialize(Handler &h)
|
template <typename Handler> void serialize(Handler &h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user