From 9435cdc5c9d18100fa8a8a7cbe37cd705080220b Mon Sep 17 00:00:00 2001 From: Edward Richardson Date: Sun, 26 Oct 2014 01:09:19 +1300 Subject: [PATCH] Fixed NULL refrence in P_SpawnBlood --- src/p_mobj.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index a67b96dfb9..829e172cb3 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -5018,10 +5018,11 @@ void P_SpawnBlood (fixed_t x, fixed_t y, fixed_t z, angle_t dir, int damage, AAc cls = cls->ParentClass; } } + + statedone: + if (!(bloodtype <= 1)) th->renderflags |= RF_INVISIBLE; } -statedone: - if (!(bloodtype <= 1)) th->renderflags |= RF_INVISIBLE; if (bloodtype >= 1) P_DrawSplash2 (40, x, y, z, dir, 2, bloodcolor); }