mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
Converted creature ID and spell ID to new form
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user