summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-05-12 11:53:53 +0000
committerrubidium <rubidium@openttd.org>2013-05-12 11:53:53 +0000
commit5931faeff6afd9c9a76410aa756f3dc4effed29d (patch)
treeab05186a7a59902004151d33ca685c8ff32b1ee6 /src
parent9bbc37450c176c73230a7722a1d089e51444a7c4 (diff)
downloadopenttd-5931faeff6afd9c9a76410aa756f3dc4effed29d.tar.xz
(svn r25235) -Fix [FS#5543]: keep all cargo whenever cancelling reservations (fonsinchen)
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index b6545e2ca..b209092fb 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2025,8 +2025,8 @@ void Vehicle::CancelReservation(Station *st)
if (cargo.ActionCount(VehicleCargoList::MTA_LOAD) > 0) {
DEBUG(misc, 1, "cancelling cargo reservation");
cargo.Return(UINT_MAX, &st->goods[v->cargo_type].cargo);
- cargo.KeepAll();
}
+ cargo.KeepAll();
}
}