summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-05-11 13:17:21 +0000
committerrubidium <rubidium@openttd.org>2014-05-11 13:17:21 +0000
commit7215b6a3d3b77a2b02fffd11aedf35d59aa5f7f9 (patch)
treef8ea59c05acf4e3a196b84afd37714bca32e5c48
parente64249446d2792c2d681f37e10a5a5a26d7151b2 (diff)
downloadopenttd-7215b6a3d3b77a2b02fffd11aedf35d59aa5f7f9.tar.xz
(svn r26578) -Fix (r26576): network compilation got broken
-rw-r--r--src/company_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index d094836ed..3dfcc3234 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -865,7 +865,9 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
if (company_id != INVALID_COMPANY && (company_id >= MAX_COMPANIES || Company::IsValidID(company_id))) return CMD_ERROR;
Company *c = DoStartupNewCompany(true, company_id);
+#ifdef ENABLE_NETWORK
if (c != NULL) NetworkServerNewCompany(c, NULL);
+#endif /* ENABLE_NETWORK */
break;
}