mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Core/Creature): populate spawnId when saving creatures to DB (#27532)
Co-authored-by: bashermens <[email protected]>
This commit is contained in:
@@ -1399,7 +1399,7 @@ void Creature::SaveToDB(uint32 mapid, uint8 spawnMask, uint32 phaseMask)
|
||||
m_spawnId = sObjectMgr->GenerateCreatureSpawnId();
|
||||
|
||||
CreatureData& data = sObjectMgr->NewOrExistCreatureData(m_spawnId);
|
||||
|
||||
data.spawnId = m_spawnId;
|
||||
uint32 displayId = GetNativeDisplayId();
|
||||
uint32 npcflag = GetNpcFlags();
|
||||
uint32 unit_flags = GetUnitFlags();
|
||||
|
||||
Reference in New Issue
Block a user