From 1856a89c0fc14455eae03c6dccd3b2b4d4ba5b15 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 31 Aug 2008 21:30:36 +0000 Subject: (svn r14210) -Codechange: remove a useless check when creating new waypoint --- src/waypoint.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/waypoint.cpp b/src/waypoint.cpp index d0b783eae..0916a887f 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -226,7 +226,6 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint3 if (flags & DC_EXEC) { if (wp == NULL) { wp = new Waypoint(tile); - if (wp == NULL) return CMD_ERROR; wp->town_index = INVALID_TOWN; wp->name = NULL; -- cgit v1.2.3-70-g09d2