diff --git a/Tactical/Soldier Ani.cpp b/Tactical/Soldier Ani.cpp index 8cbe8d476..7fd31af9a 100644 --- a/Tactical/Soldier Ani.cpp +++ b/Tactical/Soldier Ani.cpp @@ -3348,13 +3348,11 @@ BOOLEAN HandleSoldierDeath( SOLDIERTYPE *pSoldier , BOOLEAN *pfMadeCorpse ) ////////////////////////////////////////////////////////////// - // WANNE: This should fix crash that could occur if enemy bleeds to death - if ( pSoldier->ubAttackerID < 254 ) { // IF this guy has an attacker and he's a good guy, play sound if ( ubAttacker != NOBODY ) { - if ( MercPtrs[ pSoldier->ubAttackerID ]->bTeam == gbPlayerNum && gTacticalStatus.ubAttackBusyCount > 0 ) + if ( MercPtrs[ pSoldier->ubAttackerID ] != NULL && MercPtrs[ pSoldier->ubAttackerID ]->bTeam == gbPlayerNum && gTacticalStatus.ubAttackBusyCount > 0 ) { gTacticalStatus.fKilledEnemyOnAttack = TRUE; gTacticalStatus.ubEnemyKilledOnAttack = pSoldier->ubID;