From ddb4f0ce5b3786562b76c5a32969351b0d1654b9 Mon Sep 17 00:00:00 2001 From: Subv2112 Date: Sat, 7 Jan 2012 13:20:59 -0500 Subject: Core/Build: Fixed compile --- src/server/game/AI/SmartScripts/SmartScript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/game/AI/SmartScripts') diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 0ac5916e927..0001b3306ca 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -1799,14 +1799,14 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u } case SMART_ACTION_GO_SET_LOOT_STATE: { - ObjectList targets = GetTargets(); + ObjectList* targets = GetTargets(e, unit); if (!targets) return; for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr) if (IsGameObject(*itr)) - (*itr)->ToGameObject()->SetLootState(e.action.setGoLootState.state); + (*itr)->ToGameObject()->SetLootState((LootState)e.action.setGoLootState.state); delete targets; break; -- cgit v1.2.3