From 453f8dff57c4d4a8f79d16f7f117a77cc719a378 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 2 Aug 2016 21:55:12 +0300 Subject: Fix issue detected by valgrind after last changes. --- src/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index 761a1424f..9cd427ab8 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -300,8 +300,6 @@ void Client::gameInit() logger->setDebugLog(config.getBoolValue("debugLog")); logger->setReportUnimplimented(config.getBoolValue("unimplimentedLog")); - touchManager.init(); - config.incValue("runcount"); #ifndef ANDROID @@ -382,6 +380,8 @@ void Client::gameInit() updateEnv(); initGraphics(); + touchManager.init(); + #ifndef WIN32 Dirs::extractDataDir(); Dirs::mountDataDir(); -- cgit v1.2.3-70-g09d2