- Fix: crash if fragments from a non-player-planted mine destroyed a lock.

- Take direction of explosions into account if possible.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7613 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2014-10-25 21:21:14 +00:00
parent 5b7f243ed9
commit 9eb023abf2
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -3362,7 +3362,7 @@ INT32 HandleBulletStructureInteraction( BULLET * pBullet, STRUCTURE * pStructure
}
// SANDRO - merc records - locks breached
if ( pBullet->pFirer->ubProfile != NO_PROFILE )
if ( pBullet->pFirer && pBullet->pFirer->ubProfile != NO_PROFILE )
gMercProfiles[ pBullet->pFirer->ubProfile ].records.usLocksBreached++;
}
}