From 7da743a0dc8d9e5098da2464d405a0ed93803c17 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 4 Feb 2009 16:45:07 +0000 Subject: (svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company. --- src/tree_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tree_gui.cpp') diff --git a/src/tree_gui.cpp b/src/tree_gui.cpp index 990f784da..045de6c36 100644 --- a/src/tree_gui.cpp +++ b/src/tree_gui.cpp @@ -180,6 +180,6 @@ static const WindowDesc _build_trees_desc = { void ShowBuildTreesToolbar() { - if (_game_mode != GM_EDITOR && !IsValidCompanyID(_current_company)) return; + if (_game_mode != GM_EDITOR && !IsValidCompanyID(_local_company)) return; AllocateWindowDescFront(&_build_trees_desc, 0); } -- cgit v1.2.3-54-g00ecf