summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-09-15 21:02:44 +0000
committerpeter1138 <peter1138@openttd.org>2006-09-15 21:02:44 +0000
commit7f13f4e82f0b884d388a60bda5a457a9b454971c (patch)
tree9c206541af34f63b985a67d61e889943f15d7348
parent05f7677b9d6b7dfcf3e7a3abd1728067476d14c2 (diff)
downloadopenttd-7f13f4e82f0b884d388a60bda5a457a9b454971c.tar.xz
(svn r6458) - Fix (r6457): ... but close the colour window if the company is removed. (Thanks Rubidium)
-rw-r--r--players.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/players.c b/players.c
index 308eb71bd..326a160c7 100644
--- a/players.c
+++ b/players.c
@@ -632,6 +632,7 @@ void PlayersYearlyLoop(void)
void DeletePlayerWindows(PlayerID pi)
{
DeleteWindowById(WC_COMPANY, pi);
+ DeleteWindowById(WC_PLAYER_COLOR, pi);
DeleteWindowById(WC_FINANCES, pi);
DeleteWindowById(WC_STATION_LIST, pi);
DeleteWindowById(WC_TRAINS_LIST, (INVALID_STATION << 16) | pi);