diff options
-rw-r--r-- | src/economy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 94674a5b6..f3d4c7499 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1107,6 +1107,10 @@ void PrepareUnload(Vehicle *front_v) static void LoadUnloadVehicle(Vehicle *v, int *cargo_left) { assert(v->current_order.IsType(OT_LOADING)); + + /* When we've finished loading we're just staying here till the timetable 'runs' out */ + if (HasBit(v->vehicle_flags, VF_LOADING_FINISHED)) return; + assert(v->load_unload_time_rem != 0); /* We have not waited enough time till the next round of loading/unloading */ |