# HG changeset patch # User James D. Callahan III # Date 1346861487 18000 # Node ID 64d1e76e69e5232655d28733a2d2c02df7947aa6 # Parent f9c81739cfe606295645a8d1656e22eb4d0a43f9 State fixes. diff -r f9c81739cfe6 -r 64d1e76e69e5 Main.lua --- a/Main.lua Wed Sep 05 09:05:04 2012 -0500 +++ b/Main.lua Wed Sep 05 11:11:27 2012 -0500 @@ -1002,13 +1002,9 @@ local loot_guid_registry = {} function WDP:LOOT_OPENED(event_name) - if action_data.looting then + if action_data.looting or not action_data.type then return end - - if not action_data.type then - action_data.type = AF.NPC - end local verify_func = LOOT_VERIFY_FUNCS[action_data.type] local update_func = LOOT_UPDATE_FUNCS[action_data.type] @@ -1065,6 +1061,7 @@ loot_guid_registry[guid] = true end update_func() + table.wipe(action_data) end end -- do-block