summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-07-29 16:45:11 +0000
committerfrosch <frosch@openttd.org>2012-07-29 16:45:11 +0000
commit48e0d9901fba132ee532252f75ee00b242af5a31 (patch)
treee57d0ca87ba1ba06b47124f2ba9c7e6bfaec2717 /src/autoreplace_cmd.cpp
parent4c9f65800be7f5a05722c18c559d74e3c1fe6711 (diff)
downloadopenttd-48e0d9901fba132ee532252f75ee00b242af5a31.tar.xz
(svn r24443) -Codechange: Move Vehicle::name to BaseConsist.
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r--src/autoreplace_cmd.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp
index 1f1717f98..de4bcb00f 100644
--- a/src/autoreplace_cmd.cpp
+++ b/src/autoreplace_cmd.cpp
@@ -357,11 +357,6 @@ static CommandCost CopyHeadSpecificThings(Vehicle *old_head, Vehicle *new_head,
/* Last do those things which do never fail (resp. we do not care about), but which are not undo-able */
if (cost.Succeeded() && old_head != new_head && (flags & DC_EXEC) != 0) {
- /* Copy vehicle name */
- if (old_head->name != NULL) {
- DoCommand(0, new_head->index, 0, DC_EXEC | DC_AUTOREPLACE, CMD_RENAME_VEHICLE, old_head->name);
- }
-
/* Copy other things which cannot be copied by a command and which shall not stay resetted from the build vehicle command */
new_head->CopyVehicleConfigAndStatistics(old_head);