diff options
author | frosch <frosch@openttd.org> | 2012-01-24 22:30:57 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-01-24 22:30:57 +0000 |
commit | 6dc33ed4b52129c0eec768be1ae0947555b2f18d (patch) | |
tree | 9c5db6b18842dc62be85148aa193d0a4173a4703 | |
parent | 9a49a600481f10009fc5c0015fb395eecc115a90 (diff) | |
download | openttd-6dc33ed4b52129c0eec768be1ae0947555b2f18d.tar.xz |
(svn r23848) -Fix: Even if A == B, A can make more sense than B.
-rw-r--r-- | src/vehicle_cmd.cpp | 2 |
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; } } |