- Fixed possible NULL pointer deref in AActor::Grind().

SVN r4254 (trunk)
This commit is contained in:
Randy Heit 2013-05-12 18:29:28 +00:00
parent 2668988870
commit e130150af0
1 changed files with 4 additions and 3 deletions

View File

@ -1062,11 +1062,12 @@ bool AActor::Grind(bool items)
gib->alpha = alpha;
gib->height = 0;
gib->radius = 0;
PalEntry bloodcolor = GetBloodColor();
if (bloodcolor != 0)
gib->Translation = TRANSLATION(TRANSLATION_Blood, bloodcolor.a);
}
S_Sound (this, CHAN_BODY, "misc/fallingsplat", 1, ATTN_IDLE);
PalEntry bloodcolor = GetBloodColor();
if (bloodcolor!=0) gib->Translation = TRANSLATION(TRANSLATION_Blood, bloodcolor.a);
}
if (flags & MF_ICECORPSE)
{