diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-03 17:23:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-03 17:23:55 +0300 |
commit | 0bdaa773a4ee5a678c400a1b097190e3856ee5a6 (patch) | |
tree | d9855dad5292cc218be9251fecf3f53aa0fede35 /src/client.cpp | |
parent | 7aec0517fe0874b5ac6e6590d442aa89a6f8f5a7 (diff) | |
download | mv-0bdaa773a4ee5a678c400a1b097190e3856ee5a6.tar.gz mv-0bdaa773a4ee5a678c400a1b097190e3856ee5a6.tar.bz2 mv-0bdaa773a4ee5a678c400a1b097190e3856ee5a6.tar.xz mv-0bdaa773a4ee5a678c400a1b097190e3856ee5a6.zip |
Convert UpdateType enum into strong typed enum.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<UpdateTypeT>( + serverConfig.getValue("updateType", 0)); mSearchHash = Net::Download::adlerBuffer( const_cast<char*>(mCurrentServer.hostname.c_str()), |