diff Main.lua @ 144:ba5422e37516

Always set current_merchant when MERCHANT_SHOW fires.
author James D. Callahan III <jcallahan@curse.com>
date Tue, 02 Oct 2012 13:25:19 -0500
parents 15ff29752523
children f8a5080a60c6
line wrap: on
line diff
--- a/Main.lua	Tue Oct 02 10:58:33 2012 -0500
+++ b/Main.lua	Tue Oct 02 13:25:19 2012 -0500
@@ -1374,7 +1374,7 @@
 
 
     function WDP:UpdateMerchantItems(event_name)
-        if not current_merchant then
+        if not current_merchant or event_name == "MERCHANT_SHOW" then
             local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target"))
 
             if unit_type ~= private.UNIT_TYPES.NPC or not unit_idnum then