(svn r7138) -Fix: [vehicle list windows] fixed a rare crash where having some (not all) vehicle list windows open for a player, that goes bankrupt would crash the game

-Codechange: closing all windows for a player will now loop all windows and close those, which got the player as caption instead of having a list of windows to close
This commit is contained in:
bjarni
2006-11-13 20:33:51 +00:00
parent 21dd00b299
commit ed46b7d380
5 changed files with 42 additions and 21 deletions

View File

@@ -252,7 +252,6 @@ static inline bool IsValidPlayer(PlayerID pi)
return pi < MAX_PLAYERS;
}
void DeletePlayerWindows(PlayerID pi);
byte GetPlayerRailtypes(PlayerID p);
/** Finds out if a Player has a certain railtype available */