commit 0f981a64861c3d9593af1613e68f05d93958a81b
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Tue Aug 19 19:51:41 2008 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Tue Aug 19 19:51:41 2008 +0000
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(+)
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;