diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -334,7 +334,7 @@ static const WindowDesc _terraform_desc void ShowTerraformToolbar(Window *link) { - if (!IsValidCompanyID(_current_company)) return; + if (!IsValidCompanyID(_local_company)) return; Window *w = AllocateWindowDescFront(&_terraform_desc, 0); if (link == NULL) return;