diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7bedd1b9d..f367d80fa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -308,17 +308,21 @@ int main(int argc, char *argv[]) SetCurrentDirectory(PhysFs::getBaseDir()); #endif setPriority(true); - Client client(options); + client = new Client(options); + int ret = 0; if (!options.testMode) { - client.gameInit(); - return client.gameExec(); + client->gameInit(); + ret = client->gameExec(); } else { - client.testsInit(); - return client.testsExec(); + client->testsInit(); + ret = client->testsExec(); } + delete client; + client = nullptr; + return ret; } #else |