summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-24 14:33:05 +0000
committertruelight <truelight@openttd.org>2005-03-24 14:33:05 +0000
commit813e84bf9e2b9ac8e2e8d2b6854a7f618a7aec78 (patch)
tree4ed90073ab6cba2a054eb0a75c2b0cd87dc34dc2 /economy.c
parente51659da601c7ce534a0815ccc156e35395e5a12 (diff)
downloadopenttd-813e84bf9e2b9ac8e2e8d2b6854a7f618a7aec78.tar.xz
(svn r2043) -Fix: committed too many files in the last commit
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/economy.c b/economy.c
index fa15b33f8..283bf3386 100644
--- a/economy.c
+++ b/economy.c
@@ -1346,6 +1346,9 @@ int LoadUnloadVehicle(Vehicle *v)
assert(v->current_order.type == OT_LOADING);
v->cur_speed = 0;
+ old_player = _current_player;
+ _current_player = v->owner;
+
st = GetStation(last_visited = v->last_station_visited);
for (; v != NULL; v = v->next) {
@@ -1452,9 +1455,6 @@ int LoadUnloadVehicle(Vehicle *v)
TriggerVehicle(v, VEHICLE_TRIGGER_EMPTY);
}
- old_player = _current_player;
- _current_player = v->owner;
-
if (result != 0) {
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);