diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -927,7 +927,7 @@ CommandCost CmdBuildRailroadStation(Tile } else { /* allocate and initialize new station */ st = new Station(tile_org); - if (st == NULL) return CMD_ERROR; + if (st == NULL) return_cmd_error(STR_3008_TOO_MANY_STATIONS_LOADING); /* ensure that in case of error (or no DC_EXEC) the station gets deleted upon return */ st_auto_delete = st; @@ -1358,7 +1358,7 @@ CommandCost CmdBuildRoadStop(TileIndex t } else { /* allocate and initialize new station */ st = new Station(tile); - if (st == NULL) return CMD_ERROR; + if (st == NULL) return_cmd_error(STR_3008_TOO_MANY_STATIONS_LOADING); /* ensure that in case of error (or no DC_EXEC) the new station gets deleted upon return */ st_auto_delete = st; @@ -1652,7 +1652,7 @@ CommandCost CmdBuildAirport(TileIndex ti /* allocate and initialize new station */ st = new Station(tile); - if (st == NULL) return CMD_ERROR; + if (st == NULL) return_cmd_error(STR_3008_TOO_MANY_STATIONS_LOADING); /* ensure that in case of error (or no DC_EXEC) the station gets deleted upon return */ st_auto_delete = st; @@ -1774,7 +1774,7 @@ CommandCost CmdBuildBuoy(TileIndex tile, /* allocate and initialize new station */ Station *st = new Station(tile); - if (st == NULL) return CMD_ERROR; + if (st == NULL) return_cmd_error(STR_3008_TOO_MANY_STATIONS_LOADING); /* ensure that in case of error (or no DC_EXEC) the station gets deleted upon return */ AutoPtrT st_auto_delete(st); @@ -1939,7 +1939,7 @@ CommandCost CmdBuildDock(TileIndex tile, } else { /* allocate and initialize new station */ st = new Station(tile); - if (st == NULL) return CMD_ERROR; + if (st == NULL) return_cmd_error(STR_3008_TOO_MANY_STATIONS_LOADING); /* ensure that in case of error (or no DC_EXEC) the station gets deleted upon return */ st_auto_delete = st;