(svn r23199) -Fix [FS#4822]: oil rigs that "expired" did not get removed from the station list

This commit is contained in:
rubidium
2011-11-12 18:06:34 +00:00
parent 7fd1e1df81
commit fb63543e2a
4 changed files with 31 additions and 3 deletions

View File

@@ -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);