From b51bb8c22160c6fd3b1a4bd308da7d2d53bd361d 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(-) (limited to 'src/waypoint.cpp') 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-54-g00ecf