Converted creature ID and spell ID to new form

This commit is contained in:
Ivan Savenko
2023-08-25 13:38:02 +03:00
parent ec8d31bbfc
commit 17d3d663ee
33 changed files with 135 additions and 171 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ bool ArmyWidget::commitChanges()
for(int i = 0; i < TOTAL_SLOTS; ++i)
{
CreatureID creId(uiSlots[i]->itemData(uiSlots[i]->currentIndex()).toInt());
if(creId == -1)
if(creId == CreatureID::NONE)
{
if(army.hasStackAtSlot(SlotID(i)))
army.eraseStack(SlotID(i));
+1 -1
View File
@@ -284,7 +284,7 @@ void Inspector::updateProperties(CGArtifact * o)
if(instance)
{
SpellID spellId = instance->getScrollSpellID();
if(spellId != -1)
if(spellId != SpellID::NONE)
{
auto * delegate = new InspectorDelegate;
for(auto spell : VLC->spellh->objects)