diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-20 18:56:15 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-20 18:56:15 +0000 |
commit | 300c953376ea93e9ba8e3ba2b97173dcecd11239 (patch) | |
tree | 5fc5d3eab59e44efe6944aef97635450f9d20cf3 /src/account-server/dalstorage.cpp | |
parent | c4dc68d8a2ebf9723b1cd83c5db6196b3eb58396 (diff) | |
download | manaserv-300c953376ea93e9ba8e3ba2b97173dcecd11239.tar.gz manaserv-300c953376ea93e9ba8e3ba2b97173dcecd11239.tar.bz2 manaserv-300c953376ea93e9ba8e3ba2b97173dcecd11239.tar.xz manaserv-300c953376ea93e9ba8e3ba2b97173dcecd11239.zip |
Fixed some compiler errors/warnings.
Diffstat (limited to 'src/account-server/dalstorage.cpp')
-rw-r--r-- | src/account-server/dalstorage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/account-server/dalstorage.cpp b/src/account-server/dalstorage.cpp index c97aa487..02b095dd 100644 --- a/src/account-server/dalstorage.cpp +++ b/src/account-server/dalstorage.cpp @@ -177,7 +177,8 @@ Account *DALStorage::getAccountBySQL(std::string const &query) int level = toUint(accountInfo(0, 4)); // Check if the user is permanently banned, or temporarily banned. - if (level == AL_BANNED || time(NULL) <= toUint(accountInfo(0, 5))) + if (level == AL_BANNED + || time(NULL) <= (int) toUint(accountInfo(0, 5))) { account->setLevel(AL_BANNED); // It is, so skip character loading. |