mirror of https://github.com/OpenTTD/OpenTTD
(svn r14323) -Fix (r14064): forgot a return...
parent
c5960b4be1
commit
5df524ecc0
|
@ -2813,7 +2813,7 @@ static bool IsUniqueStationName(const char *name)
|
||||||
*/
|
*/
|
||||||
CommandCost CmdRenameStation(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
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;
|
if (StrEmpty(_cmd_text) || strlen(_cmd_text) >= MAX_LENGTH_STATION_NAME_BYTES) return CMD_ERROR;
|
||||||
|
|
||||||
Station *st = GetStation(p1);
|
Station *st = GetStation(p1);
|
||||||
|
|
Loading…
Reference in New Issue