Core/DataStores: Corrected reading CharStartOutfit.dbc
This commit is contained in:
1 parent
8ecf5ff41d
commit
0333c4ce8f
6 files changed
+25
-11
No files matched your search
@@ -2956,10 +2956,9 @@ void ObjectMgr::PlayerCreateInfoAddItemHelper(uint32 race_, uint32 class_, uint3
|
||||
if (count < -1)
|
||||
sLog->outError(LOG_FILTER_SQL, "Invalid count %i specified on item %u be removed from original player create info (use -1)!", count, itemId);
|
||||
|
||||
uint32 RaceClass = (race_) | (class_ << 8);
|
||||
for (uint32 gender = 0; gender < GENDER_NONE; ++gender)
|
||||
{
|
||||
if (CharStartOutfitEntry const* entry = sCharStartOutfitStore.LookupEntry(RaceClass | (gender << 16)))
|
||||
if (CharStartOutfitEntry const* entry = GetCharStartOutfitEntry(race_, class_, gender))
|
||||
{
|
||||
bool found = false;
|
||||
for (uint8 x = 0; x < MAX_OUTFIT_ITEMS; ++x)
|
||||
|
||||
Reference in new issue
Block a user