From b6b665e989a586a23f395c1dc9253e561b5e26ae Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 7 Feb 2024 17:22:21 +0000 Subject: [PATCH] Set GoodsEntry last_vehicle_type when resetting time_since_pickup --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/economy.cpp b/src/economy.cpp index 54dd04e838..e904160a48 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -2200,6 +2200,7 @@ static void LoadUnloadVehicle(Vehicle *front) if (cap_left > 0) { /* If vehicle can load cargo, reset time_since_pickup. */ ge->time_since_pickup = 0; + ge->last_vehicle_type = v->type; /* If there's goods waiting at the station, and the vehicle * has capacity for it, load it on the vehicle. */ @@ -2233,7 +2234,6 @@ static void LoadUnloadVehicle(Vehicle *front) anything_loaded = true; st->time_since_load = 0; - ge->last_vehicle_type = v->type; if (ged->cargo.TotalCount() == 0) { TriggerStationRandomisation(st, st->xy, SRT_CARGO_TAKEN, v->cargo_type);