From 1ee12bcb3b8243ef4a372a1959f0ce386190444f Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Mon, 26 Dec 2016 15:00:05 -0600 Subject: [PATCH] yay syntax --- .../LoginServer/src/shared/ClientConnection.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp index b312e355..033fb130 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()) { - std::hash tmphash; - - if (*i.length() > MAX_ACCOUNT_NAME_LENGTH) { - *i.resize(MAX_ACCOUNT_NAME_LENGTH); + if (!i->empty()) { + if (i->length() > MAX_ACCOUNT_NAME_LENGTH) { + i->resize(MAX_ACCOUNT_NAME_LENGTH); } + std::hash h; + // insert all related accounts, if not already there, into the db - DatabaseConnection::getInstance().upsertAccountRelationship(suid, tmphash(*i)); + DatabaseConnection::getInstance().upsertAccountRelationship(suid, h(*i)); } } }