summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-17 23:55:22 +0000
committerrubidium <rubidium@openttd.org>2010-08-17 23:55:22 +0000
commit4780cc50b200400bb1d05f22532041cd6edd3dc9 (patch)
treee24d66b398e2d985fcf622df277b730b887afcdb /src/ai
parentc14853b72e38f23d034e737450b5e894ba794e12 (diff)
downloadopenttd-4780cc50b200400bb1d05f22532041cd6edd3dc9.tar.xz
(svn r20532) -Codechange: unify selling of vehicles a bit
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_vehicle.cpp b/src/ai/api/ai_vehicle.cpp
index 123e2f1dd..f7af218f9 100644
--- a/src/ai/api/ai_vehicle.cpp
+++ b/src/ai/api/ai_vehicle.cpp
@@ -148,7 +148,7 @@
const Train *v = ::Train::Get(vehicle_id);
while (wagon-- > 0) v = v->GetNextUnit();
- return AIObject::DoCommand(0, v->index, sell_attached_wagons ? 1 : 0, CMD_SELL_RAIL_WAGON);
+ return AIObject::DoCommand(0, v->index, sell_attached_wagons ? 1 : 0, CMD_SELL_VEHICLE);
}
/* static */ bool AIVehicle::SellWagon(VehicleID vehicle_id, int wagon)