summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2016-01-22 09:42:37 +0100
committerJulian Laubstein <julianlaubstein@yahoo.de>2016-01-22 09:42:37 +0100
commitb093e8e813e47d8fe15c15d1dfb099214f69aca7 (patch)
treec552a82adeffb6f56755c7d1df2f2e64eb98a6cb /src/main.cpp
parentMerge pull request #2895 from LogicParrot/readme (diff)
parentFix running as a service. (diff)
downloadcuberite-b093e8e813e47d8fe15c15d1dfb099214f69aca7.tar
cuberite-b093e8e813e47d8fe15c15d1dfb099214f69aca7.tar.gz
cuberite-b093e8e813e47d8fe15c15d1dfb099214f69aca7.tar.bz2
cuberite-b093e8e813e47d8fe15c15d1dfb099214f69aca7.tar.lz
cuberite-b093e8e813e47d8fe15c15d1dfb099214f69aca7.tar.xz
cuberite-b093e8e813e47d8fe15c15d1dfb099214f69aca7.tar.zst
cuberite-b093e8e813e47d8fe15c15d1dfb099214f69aca7.zip
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 06f979097..1b77e2480 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -495,6 +495,9 @@ int main(int argc, char ** argv)
}
#endif
+ // Make sure m_RunAsService is set correctly before checking it's value
+ ParseArguments(argc, argv);
+
// Attempt to run as a service
if (cRoot::m_RunAsService)
{