mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 15:17:27 +01:00
Should fix crash with chromaggus. #472
patch by footman --HG-- branch : trunk
This commit is contained in:
@@ -232,7 +232,7 @@ struct TRINITY_DLL_DECL boss_chromaggusAI : public ScriptedAI
|
||||
for (std::list<HostilReference*>::iterator i = m_creature->getThreatManager().getThreatList().begin(); i != m_creature->getThreatManager().getThreatList().end(); ++i)
|
||||
{
|
||||
Unit* pUnit;
|
||||
if ((*i)->getSource())
|
||||
if ((*i) && (*i)->getSource())
|
||||
{
|
||||
pUnit = Unit::GetUnit((*m_creature), (*i)->getUnitGuid());
|
||||
if (pUnit)
|
||||
|
||||
Reference in New Issue
Block a user