mirror of https://github.com/OpenTTD/OpenTTD
(svn r23848) -Fix: Even if A == B, A can make more sense than B.
parent
9a49a60048
commit
6dc33ed4b5
|
@ -196,7 +196,7 @@ CommandCost CmdSellVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
||||||
ret = CommandCost(EXPENSES_NEW_VEHICLES, -front->value);
|
ret = CommandCost(EXPENSES_NEW_VEHICLES, -front->value);
|
||||||
|
|
||||||
if (flags & DC_EXEC) {
|
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;
|
delete front;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue