1
0
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:
Opuszek
2025-07-25 21:09:17 +02:00
parent 25ba05cdab
commit 8807b442a6
3 changed files with 7 additions and 2 deletions

View File

@@ -1273,6 +1273,11 @@ void CGHeroInstance::removeSpellbook()
}
}
void CGHeroInstance::removeAllSpells()
{
spells.clear();
}
const std::set<SpellID> & CGHeroInstance::getSpellsInSpellbook() const
{
return spells;