diff mm7_6.cpp @ 1100:b82375804b5d

arrow damage fixed
author zipi
date Mon, 27 May 2013 11:19:14 +0100
parents 8b59f13c9c3e
children 79010db96ade
line wrap: on
line diff
--- a/mm7_6.cpp	Mon May 27 00:46:26 2013 +0200
+++ b/mm7_6.cpp	Mon May 27 11:19:14 2013 +0100
@@ -2842,7 +2842,7 @@
 			pSpellSprite.uFacing = LOWORD(v715.uYawAngle);
 			pSpellSprite.uSoundID = LOWORD(pCastSpell->sound_id);
 			pPlayer = &pParty->pPlayers[pCastSpell->uPlayerID];
-			memcpy(&pSpellSprite.stru_24, &pPlayer[pPlayer->pEquipment.uBow], sizeof(pSpellSprite.stru_24));
+			memcpy(&pSpellSprite.stru_24, &pPlayer->pInventoryItems[pPlayer->pEquipment.uBow-1], sizeof(pSpellSprite.stru_24));
 			pSpellSprite.uAttributes = 256;
 			if ( pParty->bTurnBasedModeOn == 1 )
 				pSpellSprite.uAttributes = 260;