summaryrefslogtreecommitdiff
path: root/src/p_map.c
diff options
context:
space:
mode:
authorSimon Howard2008-08-19 19:51:41 +0000
committerSimon Howard2008-08-19 19:51:41 +0000
commit0f981a64861c3d9593af1613e68f05d93958a81b (patch)
treea0dc4ca9a2aa7df546922b62aae079361d096687 /src/p_map.c
parent5d97a9a63327bba17805bf228cafe3caf2338b2c (diff)
downloadchocolate-doom-0f981a64861c3d9593af1613e68f05d93958a81b.tar.gz
chocolate-doom-0f981a64861c3d9593af1613e68f05d93958a81b.tar.bz2
chocolate-doom-0f981a64861c3d9593af1613e68f05d93958a81b.zip
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
Diffstat (limited to 'src/p_map.c')
-rw-r--r--src/p_map.c2
1 files changed, 2 insertions, 0 deletions
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;