forked from Mirrors/openclonk
Fix null pointer exception when objects are removed in response to a hit callback.
parent
f815613ce8
commit
3fb86e9ea9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue