summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-14 16:01:46 +0000
committersmatz <smatz@openttd.org>2008-09-14 16:01:46 +0000
commit5df524ecc0dfb016fa561cdb48451467288c814f (patch)
tree340f04ea5ab388a69cf513cb873ea3d64b864ccd
parentc5960b4be1608be0e502dfeb35ef9cee3a08253a (diff)
downloadopenttd-5df524ecc0dfb016fa561cdb48451467288c814f.tar.xz
(svn r14323) -Fix (r14064): forgot a return...
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index ecd4adf5e..056e0d620 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2813,7 +2813,7 @@ static bool IsUniqueStationName(const char *name)
*/
CommandCost CmdRenameStation(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
{
- if (!IsValidStationID(p1))
+ if (!IsValidStationID(p1)) return CMD_ERROR;
if (StrEmpty(_cmd_text) || strlen(_cmd_text) >= MAX_LENGTH_STATION_NAME_BYTES) return CMD_ERROR;
Station *st = GetStation(p1);