summaryrefslogtreecommitdiff
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
commit1856a89c0fc14455eae03c6dccd3b2b4d4ba5b15 (patch)
treedfe83e2b4ce81f236ed5b90141a8d2460b64f7ce
parent3c5ab035d825efa9b2b652b8de02d3ba908af602 (diff)
downloadopenttd-1856a89c0fc14455eae03c6dccd3b2b4d4ba5b15.tar.xz
(svn r14210) -Codechange: remove a useless check when creating new waypoint
-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;