diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-17 20:58:58 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-17 20:58:58 +0000 |
commit | abc5fd1272051418f8d7a01ce2c9e61d8a51dff5 (patch) | |
tree | cd9b1f30e5a04a6235b23925111ea07647882889 /town_cmd.c | |
parent | 6dba03a819e6a71ec84935515d8b2ed17a45aca8 (diff) | |
download | openttd-abc5fd1272051418f8d7a01ce2c9e61d8a51dff5.tar.xz |
(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).
Diffstat (limited to 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/town_cmd.c b/town_cmd.c index 8eb782d9e..498c2154b 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -1447,7 +1447,7 @@ int32 CmdRenameTown(int x, int y, uint32 flags, uint32 p1, uint32 p2) StringID str; Town *t; - if (!IsTownIndex(p1)) return CMD_ERROR; + if (!IsTownIndex(p1) || _cmd_text[0] == '\0') return CMD_ERROR; t = GetTown(p1); |