From f7b3067fb3b0e3620e8198119e0e9644cedd6cdd Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 21 Jul 2009 17:14:05 +0000 Subject: (svn r16901) -Fix [FS#3046] (rpbs): when marking trains stuck don't reset the unload counter/stuck when the vehicle is unloading. It'll be automatically reset once the vehicle wants to leave the station --- src/economy.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/economy.cpp') diff --git a/src/economy.cpp b/src/economy.cpp index 210ff0d49..53d405e47 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1256,6 +1256,7 @@ void PrepareUnload(Vehicle *front_v) static void LoadUnloadVehicle(Vehicle *v, int *cargo_left) { assert(v->current_order.IsType(OT_LOADING)); + assert(v->load_unload_time_rem != 0); /* We have not waited enough time till the next round of loading/unloading */ if (--v->load_unload_time_rem != 0) { -- cgit v1.2.3-70-g09d2