diff Player.cpp @ 287:64770a1eb8e9

Paperdoll fix
author Ritor1
date Mon, 18 Feb 2013 00:37:49 +0600
parents e3b70ba42154
children 9a6052fecad4
line wrap: on
line diff
--- a/Player.cpp	Sun Feb 17 23:11:49 2013 +0600
+++ b/Player.cpp	Mon Feb 18 00:37:49 2013 +0600
@@ -3350,8 +3350,7 @@
 //----- (0048D62C) --------------------------------------------------------
 int Player::GetEquippedItemEquipType(unsigned int uEquipSlot)
 {
-  return pItemsTable->pItems[*(int *)&this->spellbook.pDarkSpellbook.bIsSpellAvailable[36
-                                                                             * *(&this->pEquipment.uOffHand
+  return pItemsTable->pItems[*(int *)&this->pInventoryItems[36 * *(&this->pEquipment.uOffHand
                                                                                + uEquipSlot)
                                                                              + 5]].uEquipType;
 }
@@ -3359,8 +3358,7 @@
 //----- (0048D651) --------------------------------------------------------
 int Player::GetEquippedItemSkillType(enum ITEM_EQUIP_TYPE uEquipSlot)
 {
-  return pItemsTable->pItems[*(int *)&this->spellbook.pDarkSpellbook.bIsSpellAvailable[36
-                                                                             * *(&this->pEquipment.uOffHand
+  return pItemsTable->pItems[*(int *)&this->pInventoryItems[36 * *(&this->pEquipment.uOffHand
                                                                                + uEquipSlot)
                                                                              + 5]].uSkillType;
 }