Core/Player: Prevented infinite growth of allowedCharsToLogin container and changed its type to better reflect its purpose
This commit is contained in:
@@ -205,6 +205,7 @@ void WorldSession::HandleCharEnum(QueryResult result)
|
||||
|
||||
data << num;
|
||||
|
||||
_allowedCharsToLogin.clear();
|
||||
if (result)
|
||||
{
|
||||
do
|
||||
@@ -213,7 +214,7 @@ void WorldSession::HandleCharEnum(QueryResult result)
|
||||
sLog->outDetail("Loading char guid %u from account %u.",guidlow,GetAccountId());
|
||||
if (Player::BuildEnumData(result, &data))
|
||||
{
|
||||
m_AllowedCharsToLogin.push_back(guidlow);
|
||||
_allowedCharsToLogin.insert(guidlow);
|
||||
++num;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user