(svn r7022) -Fix [FS#292]: Properly guard against viewing company-sensitive information from
invalid players (eg spectators) which could lead to crashes.
This commit is contained in:
@@ -506,6 +506,8 @@ void ShowPlayerStations(PlayerID player)
|
||||
{
|
||||
Window *w;
|
||||
|
||||
if (!IsValidPlayer(player)) return;
|
||||
|
||||
w = AllocateWindowDescFront(&_player_stations_desc, player);
|
||||
if (w != NULL) {
|
||||
w->caption_color = (byte)w->window_number;
|
||||
|
Reference in New Issue
Block a user