Store previous items in the savegame

This commit is contained in:
Andrei Kortunov 2018-03-09 10:20:17 +04:00
parent 9fd2d57b86
commit acd3cba5fa
5 changed files with 27 additions and 1 deletions

View file

@ -34,6 +34,9 @@ namespace ESM
StatState<int> mSaveAttributes[ESM::Attribute::Length];
StatState<int> mSaveSkills[ESM::Skill::Length];
typedef std::map<std::string, std::string> PreviousItems; // previous equipped items, needed for bound spells
PreviousItems mPreviousItems;
void load (ESMReader &esm);
void save (ESMWriter &esm) const;
};