diff options
Diffstat (limited to 'dock_gui.c')
-rw-r--r-- | dock_gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dock_gui.c b/dock_gui.c index 571c91985..a58fe29fa 100644 --- a/dock_gui.c +++ b/dock_gui.c @@ -214,7 +214,8 @@ static const WindowDesc _build_docks_toolbar_desc = { void ShowBuildDocksToolbar(void) { - if (_current_player == PLAYER_SPECTATOR) return; + if (!IsValidPlayer(_current_player)) return; + DeleteWindowById(WC_BUILD_TOOLBAR, 0); AllocateWindowDesc(&_build_docks_toolbar_desc); if (_patches.link_terraform_toolbar) ShowTerraformToolbar(); |