diff --git a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp index 28d06c83..b312e355 100755 --- a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp +++ b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp @@ -249,15 +249,15 @@ void ClientConnection::validateClient(const std::string & id, const std::string if (childAccounts.size() == 0) { for (auto i = childAccounts.begin(); i != childAccounts.end(); ++i) { - if (!i.empty()) { + if (!*i.empty()) { std::hash tmphash; - if (i.length() > MAX_ACCOUNT_NAME_LENGTH) { - i.resize(MAX_ACCOUNT_NAME_LENGTH); + if (*i.length() > MAX_ACCOUNT_NAME_LENGTH) { + *i.resize(MAX_ACCOUNT_NAME_LENGTH); } // insert all related accounts, if not already there, into the db - DatabaseConnection::getInstance().upsertAccountRelationship(suid, tmphash(i)); + DatabaseConnection::getInstance().upsertAccountRelationship(suid, tmphash(*i)); } } }