ref: 0f981a64861c3d9593af1613e68f05d93958a81b
parent: 5d97a9a63327bba17805bf228cafe3caf2338b2c
author: Simon Howard <[email protected]>
date: Tue Aug 19 15:51:41 EDT 2008
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
--- a/src/p_map.c
+++ b/src/p_map.c
@@ -1072,6 +1072,8 @@
{
fixed_t x2;
fixed_t y2;
+
+ t1 = P_SubstNullMobj(t1);
angle >>= ANGLETOFINESHIFT;
shootthing = t1;