Skip to content

Commit f22faea

Browse files
committed
Update ObjectMgr.cpp
1 parent 097449b commit f22faea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/game/ObjectMgr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12091,9 +12091,9 @@ void ObjectMgr::ApplyPremadeGearTemplateToPlayer(uint32 entry, Player* pPlayer)
1209112091
pPlayer->SetUInt32Value(PLAYER_XP, 0);
1209212092
}
1209312093

12094-
// Unequip current gear
12094+
// Delete current gear
1209512095
for (int i = EQUIPMENT_SLOT_START; i < EQUIPMENT_SLOT_END; ++i)
12096-
pPlayer->AutoUnequipItemFromSlot(i);
12096+
pPlayer->DestroyItem(INVENTORY_SLOT_BAG_0, i, true);
1209712097

1209812098
// Learn Dual Wield Specialization
1209912099
if (pPlayer->GetClass() == CLASS_WARRIOR || pPlayer->GetClass() == CLASS_ROGUE || pPlayer->GetClass() == CLASS_HUNTER)

0 commit comments

Comments
 (0)