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

gesture for quick backpack window

This commit is contained in:
SoundSSGood
2023-12-17 16:30:19 +02:00
parent 5099b52a4f
commit e5c532beb4
15 changed files with 188 additions and 84 deletions

View File

@@ -64,10 +64,7 @@ SpellID CScrollArtifactInstance::getScrollSpellID() const
auto artInst = static_cast<const CArtifactInstance*>(this);
const auto bonus = artInst->getBonusLocalFirst(Selector::type()(BonusType::SPELL));
if(!bonus)
{
logMod->warn("Warning: %s doesn't bear any spell!", artInst->nodeName());
return SpellID::NONE;
}
return bonus->subtype.as<SpellID>();
}