diff options
| author | megamage <none@none> | 2009-02-08 22:33:18 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-02-08 22:33:18 -0600 |
| commit | 7de8267c3c4112b6757c09040ccb243dd7bd7318 (patch) | |
| tree | fd25ccd04e2307eb13632a02fe9b394a9db0dbb4 /src | |
| parent | 6829acb5120a689999b9a6df464a62fa1fe6a8b3 (diff) | |
*Fix a crash caused by npc_lord_illidan_stormrage script.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/bindings/scripts/scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bindings/scripts/scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp b/src/bindings/scripts/scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp index 8db7477ea1e..eb929787f5f 100644 --- a/src/bindings/scripts/scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp +++ b/src/bindings/scripts/scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp @@ -1522,7 +1522,9 @@ struct TRINITY_DLL_DECL npc_lord_illidan_stormrageAI : public ScriptedAI for(Group::member_citerator itr = members.begin(); itr!= members.end(); itr++) { GroupMember = ((Player*)Unit::GetUnit((*m_creature), itr->guid)); - if(GroupMember && !GroupMember->IsWithinDistInMap(m_creature, EVENT_AREA_RADIUS) && GroupMember->GetQuestStatus(QUEST_BATTLE_OF_THE_CRIMSON_WATCH) == QUEST_STATUS_INCOMPLETE) + if(!GroupMember) + continue; + if(!GroupMember->IsWithinDistInMap(m_creature, EVENT_AREA_RADIUS) && GroupMember->GetQuestStatus(QUEST_BATTLE_OF_THE_CRIMSON_WATCH) == QUEST_STATUS_INCOMPLETE) { GroupMember->FailQuest(QUEST_BATTLE_OF_THE_CRIMSON_WATCH); GroupMember->SetQuestStatus(QUEST_BATTLE_OF_THE_CRIMSON_WATCH, QUEST_STATUS_NONE); |
