1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Stack instance now stores non-serialized pointer to army

This commit is contained in:
Ivan Savenko
2025-04-30 22:10:06 +03:00
parent 313a1119ea
commit 1690913ba4
6 changed files with 27 additions and 16 deletions

View File

@@ -352,6 +352,7 @@ protected:
private:
void levelUpAutomatically(vstd::RNG & rand);
void attachCommanderToArmy();
public:
std::string getHeroTypeName() const;
@@ -396,6 +397,9 @@ public:
h & commander;
h & visitedObjects;
if(!h.saving && h.loadingGamestate)
attachCommanderToArmy();
}
};