summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 504ea3875..8bb7f2646 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -469,7 +469,7 @@ void StartupCompanies()
static void MaybeStartNewCompany()
{
#ifdef ENABLE_NETWORK
- if (_networking && ActiveCompanyCount() >= _settings_client.network.max_companies) return;
+ if (_networking && Company::GetNumItems() >= _settings_client.network.max_companies) return;
#endif /* ENABLE_NETWORK */
Company *c;