diff --git a/Tactical/LOS.cpp b/Tactical/LOS.cpp index aa0df30e..d724b58b 100644 --- a/Tactical/LOS.cpp +++ b/Tactical/LOS.cpp @@ -3086,7 +3086,7 @@ BOOLEAN BulletHitMerc( BULLET * pBullet, STRUCTURE * pStructure, BOOLEAN fIntend // adjust for bullet going through person iImpact -= CalcBodyImpactReduction( ubAmmoType, ubHitLocation ); // adjust for other side of armour! - iImpact -= TotalArmourProtection( pTarget, ubHitLocation, iImpact, ubAmmoType, pBullet->fFragment ); + iImpact -= TotalArmourProtection( pTarget, ubHitLocation, iImpact, ubAmmoType, (pBullet && pBullet->fFragment) ); if (iImpact > 0) { pBullet->iImpact = (INT8) iImpact; diff --git a/Tactical/Weapons.cpp b/Tactical/Weapons.cpp index ed266b03..cca5ce4a 100644 --- a/Tactical/Weapons.cpp +++ b/Tactical/Weapons.cpp @@ -9657,7 +9657,7 @@ INT32 BulletImpact( SOLDIERTYPE *pFirer, BULLET *pBullet, SOLDIERTYPE * pTarget, } else { - iTotalArmourProtection = TotalArmourProtection( pTarget, ubHitLocation, iOrigImpact, ubAmmoType, pBullet->fFragment ); + iTotalArmourProtection = TotalArmourProtection( pTarget, ubHitLocation, iOrigImpact, ubAmmoType, (pBullet && pBullet->fFragment) ); iImpact = iOrigImpact - iTotalArmourProtection; // sevenfm: store armour protection