1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00

fixed compilation with gcc/clang

fix for #1699
This commit is contained in:
Ivan Savenko
2014-02-19 07:27:41 +00:00
parent 1e555a8ee3
commit b5568edcc0
2 changed files with 9 additions and 5 deletions

View File

@ -1304,7 +1304,8 @@ void CGameState::prepareCrossoverHeroes(std::vector<CGameState::CampaignHeroRepl
cgh->spells.clear();
// Spellbook will also be removed
ArtifactLocation(cgh, ArtifactPosition(ArtifactPosition::SPELLBOOK)).removeArtifact();
if (cgh->hasSpellbook())
ArtifactLocation(cgh, ArtifactPosition(ArtifactPosition::SPELLBOOK)).removeArtifact();
}
}