Mercurial > wow > wowdb-profiler
changeset 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 | 75c052281055 |
files | Main.lua |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
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