1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Merge pull request #5692 from shamazmazum/fix-assert

Fix incorrect assertion in CArtPlace::setArtifact
This commit is contained in:
Ivan Savenko
2025-05-08 15:43:25 +03:00
committed by GitHub

View File

@@ -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())
{