mirror of https://github.com/OpenTTD/OpenTTD
(svn r10931) -Fix [FS#1131]: when a station was destroyed and a vehicle was still loading, changing the current order of the loading vehicle caused a crash. This could happen with removing docks and oil rigs.
parent
b8fb514321
commit
fda1c9d34a
|
@ -69,6 +69,10 @@ Station::~Station()
|
||||||
|
|
||||||
if (CleaningPool()) return;
|
if (CleaningPool()) return;
|
||||||
|
|
||||||
|
while (!loading_vehicles.empty()) {
|
||||||
|
loading_vehicles.front()->LeaveStation();
|
||||||
|
}
|
||||||
|
|
||||||
MarkDirty();
|
MarkDirty();
|
||||||
RebuildStationLists();
|
RebuildStationLists();
|
||||||
InvalidateWindowClasses(WC_STATION_LIST);
|
InvalidateWindowClasses(WC_STATION_LIST);
|
||||||
|
|
Loading…
Reference in New Issue