no default repeat spells & buf message when none stored

Fix #535
This commit is contained in:
2025-01-18 16:02:53 -06:00
parent 37640bf349
commit c38c79b12b
3 changed files with 31 additions and 10 deletions

View File

@@ -105,7 +105,7 @@ public:
eRace race;
long unique_id;
// transient stuff
std::map<eSkill,eSpell> last_cast;
std::map<eSkill,eSpell> last_cast = {{ eSkill::MAGE_SPELLS, eSpell::NONE}, { eSkill::PRIEST_SPELLS, eSpell::NONE }};
location combat_pos;
short parry = 0;
iLiving* last_attacked = nullptr; // Note: Currently this is assigned but never read