mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 07:36:23 +00:00
fix(Core): Fixed a few crashes/bugs that were found via static code analysis (#2617)
This commit is contained in:
@@ -220,16 +220,20 @@ public:
|
||||
|
||||
void JustSummoned(Creature *pSummoned)
|
||||
{
|
||||
listOfMobs.Summon(pSummoned);
|
||||
if (pSummoned)
|
||||
{
|
||||
listOfMobs.Summon(pSummoned);
|
||||
pInstance->SetData64(DATA_ADD_TRASH_MOB, pSummoned->GetGUID());
|
||||
}
|
||||
}
|
||||
|
||||
void SummonedMobDied(Creature *pSummoned)
|
||||
{
|
||||
listOfMobs.Despawn(pSummoned);
|
||||
if (pSummoned)
|
||||
{
|
||||
listOfMobs.Despawn(pSummoned);
|
||||
pInstance->SetData64(DATA_DELETE_TRASH_MOB, pSummoned->GetGUID());
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user