Fix null pointer exception when objects are removed in response to a hit callback.

issue1247
Sven Eberhardt 2014-10-03 21:57:38 +02:00
parent f815613ce8
commit 3fb86e9ea9
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ global func FxHitCheckDoCheck(object target, proplist effect)
Sort_Distance(oldx, oldy)))
{
// Excludes
if (!obj) continue; // hit callback of one object might have removed other objects
if(obj == target) continue;
if(obj == shooter) continue;