mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/PacketIO: Initialize HasDemonHunterOnRealm field in character enum
This commit is contained in:
@@ -298,6 +298,9 @@ void WorldSession::HandleCharEnum(PreparedQueryResult result)
|
||||
if (!sWorld->HasCharacterInfo(charInfo.Guid)) // This can happen if characters are inserted into the database manually. Core hasn't loaded name data yet.
|
||||
sWorld->AddCharacterInfo(charInfo.Guid, GetAccountId(), charInfo.Name, charInfo.Sex, charInfo.Race, charInfo.Class, charInfo.Level, false);
|
||||
|
||||
if (charInfo.Class == CLASS_DEMON_HUNTER)
|
||||
charEnum.HasDemonHunterOnRealm = true;
|
||||
|
||||
charEnum.Characters.emplace_back(charInfo);
|
||||
}
|
||||
while (result->NextRow());
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace WorldPackets
|
||||
|
||||
bool Success = false; ///<
|
||||
bool IsDeletedCharacters = false; ///< used for character undelete list
|
||||
bool IsDemonHunterCreationAllowed = false;
|
||||
bool IsDemonHunterCreationAllowed = false; ///< used for demon hunter early access
|
||||
bool HasDemonHunterOnRealm = false;
|
||||
bool HasLevel70OnAccount = false;
|
||||
bool Unknown7x = false;
|
||||
|
||||
Reference in New Issue
Block a user