summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-10-01 19:38:08 +0000
committerfrosch <frosch@openttd.org>2012-10-01 19:38:08 +0000
commitadf1929f0a01e2ddf55029c565bd8ef0e3959f73 (patch)
tree24ca613c6fd0ac4b834e443abaa8de61a1304d1d
parent0ba2ed7676b954511fd2c17f450ae1618b1a677c (diff)
downloadopenttd-adf1929f0a01e2ddf55029c565bd8ef0e3959f73.tar.xz
(svn r24566) -Codechange: Reorder some code more intuitively. (Juanjo)
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 6ef7636aa..b4fd7e7e7 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1326,8 +1326,8 @@ static void LoadUnloadVehicle(Vehicle *front, int *cargo_left)
if ((front->current_order.GetUnloadType() & (OUFB_UNLOAD | OUFB_TRANSFER)) && (!accepted || v->cargo.Count() == cargo_count)) {
remaining = v->cargo.MoveTo(&ge->cargo, amount_unloaded, front->current_order.GetUnloadType() & OUFB_TRANSFER ? VehicleCargoList::MTA_TRANSFER : VehicleCargoList::MTA_UNLOAD, payment);
if (!HasBit(ge->acceptance_pickup, GoodsEntry::GES_PICKUP)) {
- InvalidateWindowData(WC_STATION_LIST, last_visited);
SetBit(ge->acceptance_pickup, GoodsEntry::GES_PICKUP);
+ InvalidateWindowData(WC_STATION_LIST, last_visited);
}
dirty_vehicle = dirty_station = true;