Skip to content

Commit

Permalink
Dynguid/Linking: Fix template linkage for non db spawns
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 15, 2021
1 parent f1d0e23 commit 0d87b55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/game/Entities/CreatureLinkingMgr.cpp
Expand Up @@ -533,7 +533,11 @@ void CreatureLinkingHolder::ProcessSlaveGuidList(CreatureLinkingEvent eventType,

for (auto slave_itr = slaveGuidList.begin(); slave_itr != slaveGuidList.end();)
{
Creature* pSlave = pSource->GetMap()->GetCreature((*slave_itr).first);
Creature* pSlave;
if ((*slave_itr).first)
pSlave = pSource->GetMap()->GetCreature((*slave_itr).first);
else
pSlave = pSource->GetMap()->GetCreature((*slave_itr).second);
if ((!pSlave || pSlave->IsCorpse()) && preprocessFlag) // dynguid respawning
pSource->GetMap()->GetSpawnManager().RespawnCreature((*slave_itr).first);
if (!pSlave)
Expand Down

0 comments on commit 0d87b55

Please sign in to comment.