summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-01-24 22:30:57 +0000
committerfrosch <frosch@openttd.org>2012-01-24 22:30:57 +0000
commit6dc33ed4b52129c0eec768be1ae0947555b2f18d (patch)
tree9c5db6b18842dc62be85148aa193d0a4173a4703
parent9a49a600481f10009fc5c0015fb395eecc115a90 (diff)
downloadopenttd-6dc33ed4b52129c0eec768be1ae0947555b2f18d.tar.xz
(svn r23848) -Fix: Even if A == B, A can make more sense than B.
-rw-r--r--src/vehicle_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp
index f7d993aa7..8899b5f32 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -196,7 +196,7 @@ CommandCost CmdSellVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
ret = CommandCost(EXPENSES_NEW_VEHICLES, -front->value);
if (flags & DC_EXEC) {
- if (v->IsPrimaryVehicle() && p1 & MAKE_ORDER_BACKUP_FLAG) OrderBackup::Backup(v, p2);
+ if (front->IsPrimaryVehicle() && p1 & MAKE_ORDER_BACKUP_FLAG) OrderBackup::Backup(front, p2);
delete front;
}
}