diff options
| author | Shauren <shauren.trinity@gmail.com> | 2014-10-23 15:00:31 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2014-10-23 15:00:31 +0200 |
| commit | ff781978a56b33567d704a860a94e5e28a53aee4 (patch) | |
| tree | 09fd3c8d0be88575c7ed388ecfab101ad9f3f3a4 /src/server/game/Server | |
| parent | 7889a3bb87bdf0f338c37c1dc18769a43fad6080 (diff) | |
Fixed gcc linking
Diffstat (limited to 'src/server/game/Server')
| -rw-r--r-- | src/server/game/Server/WorldSocket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp index 201b673d424..4739c613e7f 100644 --- a/src/server/game/Server/WorldSocket.cpp +++ b/src/server/game/Server/WorldSocket.cpp @@ -373,8 +373,8 @@ void WorldSocket::HandleAuthSession(WorldPacket& recvPacket) } // Get the account information from the auth database - // 0 1 2 3 4 5 6 7 8 9 - // SELECT id, sessionkey, last_ip, locked, expansion, mutetime, locale, recruiter, os, battlenet_account FROM account WHERE username = ? + // 0 1 2 3 4 5 6 7 8 + // SELECT id, sessionkey, last_ip, locked, expansion, mutetime, locale, recruiter, os FROM account WHERE username = ? PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_ACCOUNT_INFO_BY_NAME); stmt->setString(0, account); @@ -500,7 +500,7 @@ void WorldSocket::HandleAuthSession(WorldPacket& recvPacket) uint32 battlenetAccountId = 0; if (loginServerType == 1) - battlenetAccountId = fields[9].GetUInt32(); + battlenetAccountId = Battlenet::AccountMgr::GetIdByGameAccount(id); // Checks gmlevel per Realm stmt = LoginDatabase.GetPreparedStatement(LOGIN_GET_GMLEVEL_BY_REALMID); |
