mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
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;
|
||||
|
||||
Reference in New Issue
Block a user