# HG changeset patch # User zipi # Date 1363117696 0 # Node ID eb67721c52681f9e753d0be4294b7edd0d1e9334 # Parent 431a8b0c2bf117959b6864f1a6cde78d9b78e281 minor fixes diff -r 431a8b0c2bf1 -r eb67721c5268 Player.cpp --- a/Player.cpp Tue Mar 12 08:30:17 2013 +0200 +++ b/Player.cpp Tue Mar 12 19:48:16 2013 +0000 @@ -3391,7 +3391,7 @@ return 1; } if ( HasItemEquipped((ITEM_EQUIP_TYPE)a2) - && *(int *)&v4->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(&v4->pEquipment.uOffHand + v3) + 5] == a1 ) + && *(int *)&this->pInventoryItems[*(&v4->pEquipment.uOffHand + v3)-1] == a1 ) return 1; return 0; } @@ -4010,7 +4010,7 @@ goto LABEL_84; } v28 = v47; - memcpy(v27, &v5->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * v5->pInventoryIndices[v47] + 5], 0x24u); + memcpy(v27, &v5->pInventoryItems[v5->pInventoryIndices[v47]-1], 0x24u); RemoveItemAtInventoryIndex(v28); LABEL_79: v42 = 0; @@ -7922,7 +7922,7 @@ return v4 >= pValue; } while ( !v3->HasItemEquipped(v26) - || *(int *)&v3->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(int *)v27 + 5] != pValue ) + || *(int *)&v3->pInventoryItems[*(int *)v27-1] != pValue ) { v26 = (ITEM_EQUIP_TYPE)((int)v26 + 1); v27 += 4;