diff options
author | smatz <smatz@openttd.org> | 2008-09-14 16:01:46 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-14 16:01:46 +0000 |
commit | 50b955542d712f75e851420f833e96874f2f6e07 (patch) | |
tree | 340f04ea5ab388a69cf513cb873ea3d64b864ccd /src | |
parent | b24e0a08bb405aaeeb7da1ac37881e31743a9fa7 (diff) | |
download | openttd-50b955542d712f75e851420f833e96874f2f6e07.tar.xz |
(svn r14323) -Fix (r14064): forgot a return...
Diffstat (limited to 'src')
-rw-r--r-- | src/station_cmd.cpp | 2 |
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); |