Преглед изворни кода

vcmi: correctly show spells from SpellInt.def

Konstantin пре 2 година
родитељ
комит
bf67784840
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      client/widgets/CComponent.cpp

+ 1 - 1
client/widgets/CComponent.cpp

@@ -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;