diff Main.lua @ 305:4986ef8a338a

Initialize current_loot whenever there is a container_id in SHOW_LOOT_TOAST - not just when the type is "item".
author James D. Callahan III <jcallahan@curse.com>
date Mon, 08 Jul 2013 16:35:15 -0500
parents 1e55a8ebedbd
children 7feb687b1b22
line wrap: on
line diff
--- a/Main.lua	Mon Jul 08 13:26:23 2013 -0500
+++ b/Main.lua	Mon Jul 08 16:35:15 2013 -0500
@@ -1134,12 +1134,13 @@
     elseif container_id then
         private.loot_toast_container_id = nil
 
+        InitializeCurrentLoot()
+
         if loot_type == "item" then
             if not item_id then
                 Debug("%s: ItemID is nil, from item link %s", event_name, item_link)
                 return
             end
-            InitializeCurrentLoot()
             current_loot.sources[container_id] = {
                 [item_id] = quantity,
             }