(svn r6458) - Fix (r6457): ... but close the colour window if the company is removed. (Thanks Rubidium)

This commit is contained in:
peter1138 2006-09-15 21:02:44 +00:00
parent db883dc49c
commit dc683f0fe5

View File

@ -632,6 +632,7 @@ void PlayersYearlyLoop(void)
void DeletePlayerWindows(PlayerID pi) void DeletePlayerWindows(PlayerID pi)
{ {
DeleteWindowById(WC_COMPANY, pi); DeleteWindowById(WC_COMPANY, pi);
DeleteWindowById(WC_PLAYER_COLOR, pi);
DeleteWindowById(WC_FINANCES, pi); DeleteWindowById(WC_FINANCES, pi);
DeleteWindowById(WC_STATION_LIST, pi); DeleteWindowById(WC_STATION_LIST, pi);
DeleteWindowById(WC_TRAINS_LIST, (INVALID_STATION << 16) | pi); DeleteWindowById(WC_TRAINS_LIST, (INVALID_STATION << 16) | pi);