summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-02 21:55:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-02 21:55:12 +0300
commit453f8dff57c4d4a8f79d16f7f117a77cc719a378 (patch)
treec550269f2d55abd834eb8551e27b410b41880616 /src/client.cpp
parent58e15c3e6f8694ad2dacaa400bc22d9f53c38cde (diff)
downloadmanaplus-453f8dff57c4d4a8f79d16f7f117a77cc719a378.tar.gz
manaplus-453f8dff57c4d4a8f79d16f7f117a77cc719a378.tar.bz2
manaplus-453f8dff57c4d4a8f79d16f7f117a77cc719a378.tar.xz
manaplus-453f8dff57c4d4a8f79d16f7f117a77cc719a378.zip
Fix issue detected by valgrind after last changes.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files 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();