summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-15 22:58:41 +0000
committersmatz <smatz@openttd.org>2008-09-15 22:58:41 +0000
commitaef674d858b0bea2d6ccc14de488cd6c9617f8c1 (patch)
tree45c367908e8900a20e722b7841e5eaf20df8cafd /src/autoreplace_cmd.cpp
parent00ce8ceb2bf176cf623636b0faacf0b7a0a7aac7 (diff)
downloadopenttd-aef674d858b0bea2d6ccc14de488cd6c9617f8c1.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.cpp2
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;
}