1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-02 23:07:36 +02:00

Fix crash on advancing to 3rd scenario of Birth of Barbarian campaign -

spellbook removal was not working correctly when hero does not keeps his
spells
This commit is contained in:
Ivan Savenko 2024-11-16 16:22:43 +00:00
parent 7f0cb6ce6a
commit 227e403e88

View File

@ -1243,7 +1243,7 @@ void CGHeroInstance::removeSpellbook()
if(hasSpellbook())
{
cb->removeArtifact(ArtifactLocation(this->id, ArtifactPosition::SPELLBOOK));
cb->gameState()->map->removeArtifactInstance(*this, ArtifactPosition::SPELLBOOK);
}
}