1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

vcmi: correctly show spells from SpellInt.def

This commit is contained in:
Konstantin 2023-03-10 19:00:46 +03:00
parent de211e9f13
commit bf67784840

View File

@ -144,7 +144,7 @@ size_t CComponent::getIndex()
case creature: return CGI->creatures()->getByIndex(subtype)->getIconIndex();
case artifact: return CGI->artifacts()->getByIndex(subtype)->getIconIndex();
case experience: return 4;
case spell: return subtype;
case spell: return (size < large) ? subtype + 1 : subtype;
case morale: return val+3;
case luck: return val+3;
case building: return val;