Mercurial > wow > wowdb-profiler
diff Main.lua @ 106:64d1e76e69e5 1.0.3
State fixes.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Wed, 05 Sep 2012 11:11:27 -0500 |
parents | f9c81739cfe6 |
children | ab41dfac7ca9 |
line wrap: on
line diff
--- 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