forked from mirror/OpenTTD
(svn r23199) -Fix [FS#4822]: oil rigs that "expired" did not get removed from the station list
This commit is contained in:
@@ -99,8 +99,12 @@ Station::~Station()
|
||||
/* Clear the persistent storage. */
|
||||
delete this->airport.psa;
|
||||
|
||||
|
||||
InvalidateWindowData(WC_STATION_LIST, this->owner, 0);
|
||||
if (this->owner == OWNER_NONE) {
|
||||
/* Invalidate all in case of oil rigs. */
|
||||
InvalidateWindowClassesData(WC_STATION_LIST, 0);
|
||||
} else {
|
||||
InvalidateWindowData(WC_STATION_LIST, this->owner, 0);
|
||||
}
|
||||
|
||||
DeleteWindowById(WC_STATION_VIEW, index);
|
||||
|
||||
|
Reference in New Issue
Block a user