summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 4 insertions, 0 deletions
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();