# HG changeset patch # User Ritor1 # Date 1361193375 -21600 # Node ID 9a6052fecad4f90c33deb2883b1c01f894957979 # Parent 64770a1eb8e9f1beb93c77216fc1931bacf6adf4 m diff -r 64770a1eb8e9 -r 9a6052fecad4 Player.cpp --- a/Player.cpp Mon Feb 18 00:37:49 2013 +0600 +++ b/Player.cpp Mon Feb 18 19:16:15 2013 +0600 @@ -3350,17 +3350,13 @@ //----- (0048D62C) -------------------------------------------------------- int Player::GetEquippedItemEquipType(unsigned int uEquipSlot) { - return pItemsTable->pItems[*(int *)&this->pInventoryItems[36 * *(&this->pEquipment.uOffHand - + uEquipSlot) - + 5]].uEquipType; + return pItemsTable->pItems[pInventoryItems[pEquipment.pIndices[uEquipSlot]-1].uItemID].uEquipType; } //----- (0048D651) -------------------------------------------------------- int Player::GetEquippedItemSkillType(enum ITEM_EQUIP_TYPE uEquipSlot) { - return pItemsTable->pItems[*(int *)&this->pInventoryItems[36 * *(&this->pEquipment.uOffHand - + uEquipSlot) - + 5]].uSkillType; + return pItemsTable->pItems[pInventoryItems[pEquipment.pIndices[uEquipSlot] - 1].uItemID].uSkillType; } //----- (0048D676) --------------------------------------------------------