mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
(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.
This commit is contained in:
+1
-1
@@ -678,7 +678,7 @@ static const WindowDesc _build_tramway_desc = {
|
||||
|
||||
void ShowBuildRoadToolbar(RoadType roadtype)
|
||||
{
|
||||
if (!IsValidCompanyID(_current_company)) return;
|
||||
if (!IsValidCompanyID(_local_company)) return;
|
||||
_cur_roadtype = roadtype;
|
||||
|
||||
DeleteWindowByClass(WC_BUILD_TOOLBAR);
|
||||
|
||||
Reference in New Issue
Block a user