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:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user