mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-19 22:23:31 +02:00
Fix incorrect assertion in CArtPlace::setArtifact
This fixes a crash in debug builds when the player tries to access a hero's inventory and the hero has a "Summon Boat" spell scroll.
This commit is contained in:
parent
544adfd545
commit
db2997f240
@ -117,7 +117,7 @@ void CArtPlace::setArtifact(const ArtifactID & newArtId, const SpellID & newSpel
|
||||
if(artId == ArtifactID::SPELL_SCROLL)
|
||||
{
|
||||
spellId = newSpellId;
|
||||
assert(spellId.num > 0);
|
||||
assert(spellId != SpellID::NONE);
|
||||
|
||||
if(settings["general"]["enableUiEnhancements"].Bool())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user