From 0bdaa773a4ee5a678c400a1b097190e3856ee5a6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Jun 2015 17:23:55 +0300 Subject: Convert UpdateType enum into strong typed enum. --- src/client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index bf0bc99ba..5c670696f 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -86,6 +86,7 @@ #include "net/loginhandler.h" #include "net/net.h" #include "net/netconsts.h" +#include "net/updatetypeoperators.h" #include "net/packetlimiter.h" #include "net/partyhandler.h" @@ -1078,8 +1079,8 @@ int Client::gameExec() // lower than the default value theme->setMinimumOpacity(0.8F); - loginData.updateType - = serverConfig.getValue("updateType", 0); + loginData.updateType = static_cast( + serverConfig.getValue("updateType", 0)); mSearchHash = Net::Download::adlerBuffer( const_cast(mCurrentServer.hostname.c_str()), -- cgit v1.2.3-70-g09d2