1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

Merge pull request #4770 from IvanSavenko/prison_fix

Fix for loading hero types / identities
This commit is contained in:
Ivan Savenko
2024-10-14 18:16:53 +03:00
committed by GitHub
16 changed files with 48 additions and 43 deletions

View File

@ -347,7 +347,7 @@ void PlayerLocalState::deserialize(const JsonNode & source)
{
// this method must be called after player state has been initialized
assert(currentSelection != nullptr);
assert(!ownedTowns.empty() || wanderingHeroes.empty());
assert(!ownedTowns.empty() || !wanderingHeroes.empty());
auto oldHeroes = wanderingHeroes;
auto oldTowns = ownedTowns;