mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fixed possible NULL pointer deref in AActor::Grind().
SVN r4254 (trunk)
This commit is contained in:
parent
2668988870
commit
e130150af0
1 changed files with 4 additions and 3 deletions
|
@ -1062,11 +1062,12 @@ bool AActor::Grind(bool items)
|
|||
gib->alpha = alpha;
|
||||
gib->height = 0;
|
||||
gib->radius = 0;
|
||||
}
|
||||
S_Sound (this, CHAN_BODY, "misc/fallingsplat", 1, ATTN_IDLE);
|
||||
|
||||
PalEntry bloodcolor = GetBloodColor();
|
||||
if (bloodcolor!=0) gib->Translation = TRANSLATION(TRANSLATION_Blood, bloodcolor.a);
|
||||
if (bloodcolor != 0)
|
||||
gib->Translation = TRANSLATION(TRANSLATION_Blood, bloodcolor.a);
|
||||
}
|
||||
S_Sound (this, CHAN_BODY, "misc/fallingsplat", 1, ATTN_IDLE);
|
||||
}
|
||||
if (flags & MF_ICECORPSE)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue