# HG changeset patch # User Caleb Atherton # Date 1466572448 14400 # Node ID 39e87b600cad37f31a0d12ca47677015ea6f34fe # Parent 1fc8da9b8cd8dc4de79a703025c52e0b8adf7e1a Fixed a new bug caused by the removal of certain global variables in Legion beta build 21996. diff -r 1fc8da9b8cd8 -r 39e87b600cad Main.lua --- a/Main.lua Mon Jun 20 05:25:06 2016 -0400 +++ b/Main.lua Wed Jun 22 01:14:08 2016 -0400 @@ -58,6 +58,10 @@ local LOOT_SLOT_ITEM = _G.LOOT_SLOT_ITEM local LOOT_SLOT_MONEY = _G.LOOT_SLOT_MONEY +-- Removed in Legion but still needed +local ERR_QUEST_REWARD_ITEM_MULT_IS = _G.ERR_QUEST_REWARD_ITEM_MULT_IS or "Received %d of item: %s." +local ERR_QUEST_REWARD_ITEM_S = _G.ERR_QUEST_REWARD_ITEM_S or "Received item: %s." + local ALLOWED_LOCALES = { enUS = true, enGB = true, @@ -1615,9 +1619,9 @@ function WDP:CHAT_MSG_SYSTEM(event_name, message) - local item_link, quantity = deformat(message, _G.ERR_QUEST_REWARD_ITEM_MULT_IS) + local item_link, quantity = deformat(message, ERR_QUEST_REWARD_ITEM_MULT_IS) if not item_link then - quantity, item_link = 1, deformat(message, _G.ERR_QUEST_REWARD_ITEM_S) + quantity, item_link = 1, deformat(message, ERR_QUEST_REWARD_ITEM_S) end local item_id = ItemLinkToID(item_link)