1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Add workaround for strange/unknown hota h3m quirk

This commit is contained in:
Ivan Savenko
2025-06-02 19:03:15 +03:00
parent c279da0798
commit ae2e6f0357
3 changed files with 9 additions and 3 deletions

View File

@ -39,6 +39,7 @@ FactionID PlayerInfo::defaultCastle() const
if(isFactionRandom)
return FactionID::RANDOM;
assert(!allowedFactions.empty());
if(!allowedFactions.empty())
return *allowedFactions.begin();