Mercurial > mm7
diff Player.cpp @ 658:cec42951eda0
Merge
author | Nomad |
---|---|
date | Wed, 13 Mar 2013 01:30:53 +0200 |
parents | eb67721c5268 |
children | c10163a6d946 |
line wrap: on
line diff
--- a/Player.cpp Wed Mar 13 01:29:33 2013 +0200 +++ b/Player.cpp Wed Mar 13 01:30:53 2013 +0200 @@ -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;