Quantcast

Make sure we actually keep the var we intended to use

Adrian L Lange [02-11-12 - 05:20]
Make sure we actually keep the var we intended to use
Filename
Monomyth.lua
diff --git a/Monomyth.lua b/Monomyth.lua
index 6d9751e..e5eaf2b 100644
--- a/Monomyth.lua
+++ b/Monomyth.lua
@@ -162,10 +162,11 @@ end)
 local completedQuests, query = {}
 Monomyth:Register('QUEST_QUERY_COMPLETE', function()
 	if(query) then
+		local bag = query
 		query = nil
-		GetQuestsCompleted(completedQuests)

-		Monomyth.BAG_UPDATE(query)
+		GetQuestsCompleted(completedQuests)
+		Monomyth.BAG_UPDATE(bag)
 	end
 end)