diff options
author | smatz <smatz@openttd.org> | 2008-09-15 22:58:41 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-15 22:58:41 +0000 |
commit | 5f4ff33ce340fc71e17abbdede06226dd4e56a54 (patch) | |
tree | 45c367908e8900a20e722b7841e5eaf20df8cafd /src/autoreplace_cmd.cpp | |
parent | a20dae0df1614f8701c1ac3a20a64fe6fd4fda5d (diff) | |
download | openttd-5f4ff33ce340fc71e17abbdede06226dd4e56a54.tar.xz |
(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, president and company renaming commands, too
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r-- | src/autoreplace_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index a1df6c218..f9293e34b 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -313,7 +313,7 @@ static CommandCost CopyHeadSpecificThings(Vehicle *old_head, Vehicle *new_head, /* Copy vehicle name */ if (old_head->name != NULL) { _cmd_text = old_head->name; - DoCommand(0, new_head->index, 0, DC_EXEC | DC_AUTOREPLACE, CMD_NAME_VEHICLE); + DoCommand(0, new_head->index, 0, DC_EXEC | DC_AUTOREPLACE, CMD_RENAME_VEHICLE); _cmd_text = NULL; } |