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

Added configurable animation for SPELL_LIKE_ATTACK

This commit is contained in:
AlexVinS
2014-11-28 00:36:14 +03:00
parent 943a5bf0d3
commit d94f15bdf4
10 changed files with 147 additions and 36 deletions

View File

@@ -87,6 +87,11 @@ CCreature * CreatureID::toCreature() const
CSpell * SpellID::toSpell() const
{
if(num < 0 || num >= VLC->spellh->objects.size())
{
logGlobal->errorStream() << "Unable to get spell of invalid ID " << int(num);
return nullptr;
}
return VLC->spellh->objects[*this];
}