diff options
author | truelight <truelight@openttd.org> | 2005-03-24 14:43:40 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-03-24 14:43:40 +0000 |
commit | 1536c3ae5af34cda0a0fc17b5181f498d2340066 (patch) | |
tree | 5312255691dcadede432d33c76158373fcd8e571 | |
parent | 9b1e6e6d3e228a5e0d3cb5e72f462ecc163a03be (diff) | |
download | openttd-1536c3ae5af34cda0a0fc17b5181f498d2340066.tar.xz |
(svn r2044) -Fix: fix that TriggerVehicle is called from the wrong user
-rw-r--r-- | economy.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1346,8 +1346,6 @@ 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); @@ -1455,6 +1453,9 @@ 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); |