From 09ecd97f290f97a5406e834ae22d539746cfc2e5 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 10 May 2016 10:00:42 +0100 Subject: [PATCH] Set logging type after memset of app and dev, to allow -debug to work correctly. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 71daae1..ffe8fb7 100644 --- a/src/main.c +++ b/src/main.c @@ -30,11 +30,11 @@ int main(int argc, char *argv[]) long expireTextTimer; SDL_Event event; - handleLoggingArgs(argc, argv); - memset(&app, 0, sizeof(App)); memset(&dev, 0, sizeof(Dev)); + handleLoggingArgs(argc, argv); + atexit(cleanup); srand(time(NULL));