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:
@@ -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>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user