diff options
Diffstat (limited to 'src/ingen/ingen.cpp')
-rw-r--r-- | src/ingen/ingen.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ingen/ingen.cpp b/src/ingen/ingen.cpp index 1cbb60e1..1932b793 100644 --- a/src/ingen/ingen.cpp +++ b/src/ingen/ingen.cpp @@ -114,6 +114,11 @@ main(int argc, char** argv) // Run engine SPtr<Interface> engine_interface; if (conf.option("engine").get<int32_t>()) { + if (world->conf().option("threads").get<int32_t>() < 1) { + cerr << "ingen: error: threads must be > 0" << endl; + return EXIT_FAILURE; + } + ingen_try(world->load_module("server"), "Failed to load server module"); ingen_try(bool(world->engine()), "Unable to create engine"); |