diff options
| author | Jan <> | 2015-10-29 23:18:20 +0100 |
|---|---|---|
| committer | Jan <> | 2015-10-29 23:18:20 +0100 |
| commit | 395b9fc24f612725801391cace3b70e59c381298 (patch) | |
| tree | c47a42b93c6ab2ee61e92cf9bfed42fab70f17b8 | |
| parent | 812d4cf8e256ca9e6268d4ff227c3c434343f4c2 (diff) | |
| download | tempelschubsen-395b9fc24f612725801391cace3b70e59c381298.tar.gz tempelschubsen-395b9fc24f612725801391cace3b70e59c381298.zip | |
Remove another superfluous null-check
| -rw-r--r-- | TemplePushing.c4s/Script.c | 2 |
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])); |
