diff options
Diffstat (limited to 'src/dock_gui.cpp')
-rw-r--r-- | src/dock_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index dd9982774..093914e39 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -277,7 +277,7 @@ static const WindowDesc _build_docks_toolbar_desc = { void ShowBuildDocksToolbar() { - if (!IsValidPlayer(_current_player)) return; + if (!IsValidPlayerID(_current_player)) return; DeleteWindowByClass(WC_BUILD_TOOLBAR); AllocateWindowDescFront<BuildDocksToolbarWindow>(&_build_docks_toolbar_desc, TRANSPORT_WATER); |