From 0fb9abd14027a38c8c227e1da490b01c0fdebfd4 Mon Sep 17 00:00:00 2001 From: kadeshar Date: Sat, 7 Mar 2026 18:29:14 +0100 Subject: [PATCH] - Merge fix --- src/server/game/DataStores/DBCStores.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/game/DataStores/DBCStores.cpp b/src/server/game/DataStores/DBCStores.cpp index 7cb68e1e4..306891e23 100644 --- a/src/server/game/DataStores/DBCStores.cpp +++ b/src/server/game/DataStores/DBCStores.cpp @@ -22,6 +22,7 @@ #include "Errors.h" #include "LFGMgr.h" #include "Log.h" +#include "RaceMgr.h" #include "SharedDefines.h" #include "SpellMgr.h" #include "TransportMgr.h" @@ -416,7 +417,7 @@ void LoadDBCStores(const std::string& dataPath) sCharStartOutfitMap[outfit->Race | (outfit->Class << 8) | (outfit->Gender << 16)] = outfit; for (CharSectionsEntry const* charSection : sCharSectionsStore) - if (charSection->Race && ((1 << (charSection->Race - 1)) & RACEMASK_ALL_PLAYABLE) != 0) //ignore Nonplayable races + if (charSection->Race && ((1 << (charSection->Race - 1)) & sRaceMgr->GetPlayableRaceMask()) != 0) //ignore Nonplayable races sCharSectionMap.insert({ charSection->GenType | (charSection->Gender << 8) | (charSection->Race << 16), charSection }); for (FactionEntry const* faction : sFactionStore) @@ -1012,4 +1013,4 @@ AreaTableEntry const* GetAreaEntryByAreaFlagAndMap(uint32 area_flag, uint32 map_ return GetAreaEntryByAreaID(mapEntry->linked_zone); return nullptr; -} \ No newline at end of file +}