diff options
author | Subv2112 <s.v.h21@hotmail.com> | 2012-01-07 13:20:59 -0500 |
---|---|---|
committer | Subv2112 <s.v.h21@hotmail.com> | 2012-01-07 13:20:59 -0500 |
commit | ddb4f0ce5b3786562b76c5a32969351b0d1654b9 (patch) | |
tree | dceca5f14dc40a1a6a16e7af9ee15f1f6142f997 | |
parent | aaa255b83dcca327947a5630ebb97c770e3becfb (diff) |
Core/Build: Fixed compile
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |