fix(Core/Creature): populate spawnId when saving creatures to DB (#27532)

Co-authored-by: bashermens <[email protected]>
This commit is contained in:
Keleborn
2026-09-07 12:15:26 +02:00
committed by GitHub
co-authored by bashermens
parent c552679abc
commit a5b478f448
@@ -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();