(svn r2345) - Fix: Don't allow stuff to be renamed to nothing if we don't support it. Only valid ones are signs (delete) and waypoints (rename to default).
This commit is contained in:
@@ -2653,7 +2653,7 @@ int32 CmdRenameStation(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
||||
StringID str,old_str;
|
||||
Station *st;
|
||||
|
||||
if (!IsStationIndex(p1)) return CMD_ERROR;
|
||||
if (!IsStationIndex(p1) || _cmd_text[0] == '\0') return CMD_ERROR;
|
||||
st = GetStation(p1);
|
||||
|
||||
if (!IsValidStation(st) || !CheckOwnership(st->owner)) return CMD_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user