From 23e57203927e73d826aeae07332d27140651b098 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 21 Aug 2011 13:10:19 +0000 Subject: (svn r22799) -Fix (r22792): compile failure when there is no networking support --- src/openttd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index e078c7da0..c7fc053f2 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -718,7 +718,11 @@ int ttd_main(int argc, char *argv[]) CheckForMissingGlyphsInLoadedLanguagePack(); +#if defined(ENABLE_NETWORK) ScanNewGRFFiles(new AfterNewGRFScan(network ? network_conn : NULL, join_server_password, join_company_password)); +#else + ScanNewGRFFiles(new AfterNewGRFScan(NULL, NULL, NULL)); +#endif _video_driver->MainLoop(); -- cgit v1.2.3-54-g00ecf