diff options
author | rubidium <rubidium@openttd.org> | 2008-05-17 20:54:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-17 20:54:18 +0000 |
commit | 9717e1ef073f351a3a3e8769b337395d84448004 (patch) | |
tree | a6539103a8675f69e55e00b8315b178a88fcb37e /src/vehicle.cpp | |
parent | dbdfccc2dadc3d8338614eaff2ca2b105eb15417 (diff) | |
download | openttd-9717e1ef073f351a3a3e8769b337395d84448004.tar.xz |
(svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 53a38e239..a4f8789a5 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2805,11 +2805,11 @@ Vehicle *BackuppedVehicle::Restore(Vehicle *v, Player *p) { if (!ContainsBackup()) return v; if (v != NULL) { - ChangeVehicleViewWindow(v, INVALID_VEHICLE); + ChangeVehicleViewWindow(v->index, INVALID_VEHICLE); DoCommand(0, v->index, 1, DC_EXEC, GetCmdSellVeh(v)); } v = RestoreBackupVehicle(this->vehicles, p); - ChangeVehicleViewWindow(INVALID_VEHICLE, v); + ChangeVehicleViewWindow(INVALID_VEHICLE, v->index); if (orders != NULL) RestoreVehicleOrdersBruteForce(v, orders); if (economy != NULL) economy->Restore(); /* If we stored cargo as well then we should restore it. */ |