Skip to content

Commit af07b57

Browse files
author
SeT
committed
Backports
1 parent fa3400e commit af07b57

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/sc_creature.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,14 @@ void ScriptedAI::SetEquipmentSlots(bool bLoadDefault, int32 uiMainHand, int32 ui
452452
}
453453

454454
if (uiMainHand >= 0)
455-
m_creature->SetUInt32Value(VIRTUAL_ITEM_SLOT_0, uint32(uiMainHand));
455+
m_creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 0, uint32(uiMainHand));
456456

457457
if (uiOffHand >= 0)
458-
m_creature->SetUInt32Value(VIRTUAL_ITEM_SLOT_1, uint32(uiOffHand));
458+
m_creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 1, uint32(uiOffHand));
459459

460460
if (uiRanged >= 0)
461-
m_creature->SetUInt32Value(VIRTUAL_ITEM_SLOT_2, uint32(uiRanged));
461+
m_creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 2, uint32(uiRanged));
462+
462463
}
463464

464465

0 commit comments

Comments
 (0)