mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
Merge pull request #5951 from Opuszek/fix_crashing_hero_spell_widget
Fixes crash on uncheck customize spell
This commit is contained in:
@@ -1273,6 +1273,11 @@ void CGHeroInstance::removeSpellbook()
|
||||
}
|
||||
}
|
||||
|
||||
void CGHeroInstance::removeAllSpells()
|
||||
{
|
||||
spells.clear();
|
||||
}
|
||||
|
||||
const std::set<SpellID> & CGHeroInstance::getSpellsInSpellbook() const
|
||||
{
|
||||
return spells;
|
||||
|
||||
@@ -157,6 +157,7 @@ public:
|
||||
bool spellbookContainsSpell(const SpellID & spell) const;
|
||||
std::vector<BonusSourceID> getSourcesForSpell(const SpellID & spell) const;
|
||||
void removeSpellbook();
|
||||
void removeAllSpells();
|
||||
const std::set<SpellID> & getSpellsInSpellbook() const;
|
||||
EAlignment getAlignment() const;
|
||||
bool needsLastStack()const override;
|
||||
|
||||
Reference in New Issue
Block a user