summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan <>2015-10-29 23:18:20 +0100
committerJan <>2015-10-29 23:18:20 +0100
commit395b9fc24f612725801391cace3b70e59c381298 (patch)
treec47a42b93c6ab2ee61e92cf9bfed42fab70f17b8
parent812d4cf8e256ca9e6268d4ff227c3c434343f4c2 (diff)
downloadtempelschubsen-395b9fc24f612725801391cace3b70e59c381298.tar.gz
tempelschubsen-395b9fc24f612725801391cace3b70e59c381298.zip
Remove another superfluous null-check
-rw-r--r--TemplePushing.c4s/Script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TemplePushing.c4s/Script.c b/TemplePushing.c4s/Script.c
index 58d53d9..93a2d46 100644
--- a/TemplePushing.c4s/Script.c
+++ b/TemplePushing.c4s/Script.c
@@ -570,7 +570,7 @@ func LaunchClonk(int player, object clonk, bool relaunch)
var wipf = PlaceAnimal(WIPF);
if (!wipf) continue;
var pos = [wipf->GetX(), wipf->GetY()];
- if (wipf) wipf->RemoveObject();
+ wipf->RemoveObject();
// Get distance to closest enemy
var closestEnemy = FindObject2(Find_OCF(OCF_CrewMember | OCF_Alive), Find_Hostile(player), Sort_Distance(pos[0], pos[1]));