Core/Build: Fixed compile

This commit is contained in:
Subv2112
2012-01-07 13:20:59 -05:00
parent aaa255b83d
commit ddb4f0ce5b
@@ -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;