summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-08-31 21:30:36 +0000
committersmatz <smatz@openttd.org>2008-08-31 21:30:36 +0000
commitb51bb8c22160c6fd3b1a4bd308da7d2d53bd361d (patch)
treedfe83e2b4ce81f236ed5b90141a8d2460b64f7ce /src
parent7fa98e33ce4a7478cdb56c0f4d66f0028a4cdc53 (diff)
downloadopenttd-b51bb8c22160c6fd3b1a4bd308da7d2d53bd361d.tar.xz
(svn r14210) -Codechange: remove a useless check when creating new waypoint
Diffstat (limited to 'src')
-rw-r--r--src/waypoint.cpp1
1 files changed, 0 insertions, 1 deletions
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;