From a4927dcd21679294cf7eedc03e57d811ee71b4df Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 27 Feb 2010 13:51:11 +0000 Subject: (svn r19273) -Codechange: Return station joining error message when error is detected. --- src/waypoint_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/waypoint_cmd.cpp') diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp index 64c5f5f4e..348ac5d12 100644 --- a/src/waypoint_cmd.cpp +++ b/src/waypoint_cmd.cpp @@ -253,6 +253,7 @@ CommandCost CmdBuildRailWaypoint(TileIndex start_tile, DoCommandFlag flags, uint Waypoint *wp = NULL; TileArea new_location(TileArea(start_tile, width, height)); CommandCost ret = FindJoiningWaypoint(est, station_to_join, adjacent, new_location, &wp); + ret.SetGlobalErrorMessage(); if (ret.Failed()) return ret; /* Check if there is an already existing, deleted, waypoint close to us that we can reuse. */ -- cgit v1.2.3-54-g00ecf