diff options
Diffstat (limited to 'airport_gui.c')
-rw-r--r-- | airport_gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/airport_gui.c b/airport_gui.c index 11acd7a64..0104cc645 100644 --- a/airport_gui.c +++ b/airport_gui.c @@ -133,7 +133,8 @@ static const WindowDesc _air_toolbar_desc = { void ShowBuildAirToolbar(void) { - if (_current_player == PLAYER_SPECTATOR) return; + if (!IsValidPlayer(_current_player)) return; + DeleteWindowById(WC_BUILD_TOOLBAR, 0); AllocateWindowDescFront(&_air_toolbar_desc, 0); if (_patches.link_terraform_toolbar) ShowTerraformToolbar(); |