mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-08 22:26:51 +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:
@@ -1243,7 +1243,7 @@ void CGHeroInstance::removeSpellbook()
|
|||||||
|
|
||||||
if(hasSpellbook())
|
if(hasSpellbook())
|
||||||
{
|
{
|
||||||
cb->removeArtifact(ArtifactLocation(this->id, ArtifactPosition::SPELLBOOK));
|
cb->gameState()->map->removeArtifactInstance(*this, ArtifactPosition::SPELLBOOK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user