From 0f981a64861c3d9593af1613e68f05d93958a81b Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 19 Aug 2008 19:51:41 +0000 Subject: Fix crash related to A_BFGSpray with NULL target when using dehacked patches - discovered with insaned2.deh (thanks CSonicGo) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1189 --- src/p_map.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/p_map.c b/src/p_map.c index 053f267c..42f2a60f 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -1072,6 +1072,8 @@ P_AimLineAttack { fixed_t x2; fixed_t y2; + + t1 = P_SubstNullMobj(t1); angle >>= ANGLETOFINESHIFT; shootthing = t1; -- cgit v1.2.3