summaryrefslogtreecommitdiffstats
path: root/src/app/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/main.cpp')
-rw-r--r--src/app/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index f857037..9eea6e4 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -69,10 +69,10 @@ int main(int argc, char *argv[])
CApplication app; // single instance of the application
- Error err = app.ParseArguments(argc, argv);
- if (err != ERR_OK)
+ if (! app.ParseArguments(argc, argv))
{
SystemDialog(SDT_ERROR, "COLOBOT", "Invalid commandline arguments!\n");
+ return app.GetExitCode();
}
int code = 0;