aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorDiscover- <amort11@hotmail.com>2011-12-25 00:13:28 +0100
committerDiscover- <amort11@hotmail.com>2011-12-25 00:13:28 +0100
commitef4608f07c8596c2436604e18d49ba8891af3191 (patch)
treec83db518366b559d6b5a9e705c52ed3e465cdec4 /src/server/scripts/World
parent0d98ecc6c17c5d9b9608c39ffff0d46dd2114690 (diff)
Core/Quests: Fix an exploit in Red Snapper - Very Tasty!
Also fix a silly codestyle typo in previous commit. Closes #3887
Diffstat (limited to 'src/server/scripts/World')
-rw-r--r--src/server/scripts/World/go_scripts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp
index 4799b893286..fad92ec1af5 100644
--- a/src/server/scripts/World/go_scripts.cpp
+++ b/src/server/scripts/World/go_scripts.cpp
@@ -1301,9 +1301,9 @@ class go_veil_skith_cage : public GameObjectScript
{
if (player->GetQuestStatus(QUEST_MISSING_FRIENDS) == QUEST_STATUS_INCOMPLETE)
{
- std::list<Creature*> ChildrenList;
- GetCreatureListWithEntryInGrid(ChildrenList, go, NPC_CAPTIVE_CHILD, INTERACTION_DISTANCE);
- for (std::list<Creature*>::const_iterator itr = ChildrenList.begin(); itr != ChildrenList.end(); ++itr)
+ std::list<Creature*> childrenList;
+ GetCreatureListWithEntryInGrid(childrenList, go, NPC_CAPTIVE_CHILD, INTERACTION_DISTANCE);
+ for (std::list<Creature*>::const_iterator itr = childrenList.begin(); itr != childrenList.end(); ++itr)
{
go->UseDoorOrButton();
player->KilledMonsterCredit(NPC_CAPTIVE_CHILD, (*itr)->GetGUID());