diff --git a/src/openttd.cpp b/src/openttd.cpp index ddd8ac99c3..f17f459cb8 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2103,6 +2103,18 @@ bool AfterLoadGame() CLRBIT(v->vehicle_flags, VF_LOADING_FINISHED); } } + } else if (CheckSavegameVersion(59)) { + /* For some reason non-loading vehicles could be in the station's loading vehicle list */ + + Station *st; + FOR_ALL_STATIONS(st) { + std::list::iterator iter; + for (iter = st->loading_vehicles.begin(); iter != st->loading_vehicles.end();) { + Vehicle *v = *iter; + iter++; + if (v->current_order.type != OT_LOADING) st->loading_vehicles.remove(v); + } + } } if (CheckSavegameVersion(58)) {