Core/Battle.net: Fixed scripts linking by adding a completely unrelated function to a completely unrelated file in game project
This commit is contained in:
1 parent
3b940a2766
commit
31c987ad8a
3 files changed
+28
-5
No files matched your search
@@ -45,6 +45,7 @@
|
||||
#include "PacketLog.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "AccountMgr.h"
|
||||
#include "BattlenetAccountMgr.h"
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma pack(1)
|
||||
@@ -856,16 +857,14 @@ int WorldSocket::HandleAuthSession(WorldPacket& recvPacket)
|
||||
// Get the account information from the realmd database
|
||||
// 0 1 2 3 4 5 6 7 8
|
||||
// SELECT id, sessionkey, last_ip, locked, expansion, mutetime, locale, recruiter, os FROM account WHERE username = ?
|
||||
size_t hashPos = account.find_last_of('#');
|
||||
PreparedStatement* stmt;
|
||||
uint32 battlenetAccountId = 0;
|
||||
if (hashPos != std::string::npos)
|
||||
uint8 battlenetAccountIndex = 0;
|
||||
if (Battlenet::AccountMgr::GetAccountIdAndIndex(account, &battlenetAccountId, &battlenetAccountIndex))
|
||||
{
|
||||
Tokenizer tokens(account, '#', 2);
|
||||
battlenetAccountId = atol(tokens[0]);
|
||||
stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_ACCOUNT_INFO_BY_BNET);
|
||||
stmt->setUInt32(0, battlenetAccountId);
|
||||
stmt->setUInt8(1, atol(tokens[1]));
|
||||
stmt->setUInt8(1, battlenetAccountIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user