mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 04:51:41 +00:00
- Fixed possible NULL pointer deref in A_CustomPunch
SVN r4255 (trunk)
This commit is contained in:
parent
e130150af0
commit
c63273348a
1 changed files with 4 additions and 1 deletions
|
@ -1409,7 +1409,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomPunch)
|
||||||
if (LifeSteal)
|
if (LifeSteal)
|
||||||
P_GiveBody (self, (Damage * LifeSteal) >> FRACBITS);
|
P_GiveBody (self, (Damage * LifeSteal) >> FRACBITS);
|
||||||
|
|
||||||
|
if (weapon != NULL)
|
||||||
|
{
|
||||||
S_Sound (self, CHAN_WEAPON, weapon->AttackSound, 1, ATTN_NORM);
|
S_Sound (self, CHAN_WEAPON, weapon->AttackSound, 1, ATTN_NORM);
|
||||||
|
}
|
||||||
|
|
||||||
self->angle = R_PointToAngle2 (self->x,
|
self->angle = R_PointToAngle2 (self->x,
|
||||||
self->y,
|
self->y,
|
||||||
|
|
Loading…
Reference in a new issue