mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Check for valid ubAttacker
This commit is contained in:
@@ -10672,7 +10672,7 @@ UINT8 SOLDIERTYPE::SoldierTakeDamage( INT8 bHeight, INT16 sLifeDeduct, INT16 sBr
|
|||||||
|
|
||||||
#ifdef JA2UB
|
#ifdef JA2UB
|
||||||
//if the attacker is MORRIS, AND he didnt kill the person
|
//if the attacker is MORRIS, AND he didnt kill the person
|
||||||
if ( ubAttacker->ubProfile == MORRIS_UB ) //MORRIS
|
if ( ubAttacker < NOBODY && ubAttacker->ubProfile == MORRIS_UB ) //MORRIS
|
||||||
{
|
{
|
||||||
//if the soldier is hurt, but not dead
|
//if the soldier is hurt, but not dead
|
||||||
if ( this->stats.bLife < bOldLife && this->stats.bLife > 0 )
|
if ( this->stats.bLife < bOldLife && this->stats.bLife > 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user