Fixing an issue with some guilds
Leandro Silva [09-21-18 - 18:04]
Fixing an issue with some guilds
diff --git a/LeoGuildManager.lua b/LeoGuildManager.lua
index 88b90ac..6c54067 100644
--- a/LeoGuildManager.lua
+++ b/LeoGuildManager.lua
@@ -2,7 +2,7 @@
LeoGM = {}
LeoGM.name = "LeoGuildManager"
LeoGM.displayName = "Leo's Guild Manager"
-LeoGM.version = "0.9.0"
+LeoGM.version = "0.9.1"
LeoGM.chatPrefix = "|c39B027" .. LeoGM.name .. "|r: "
LeoGM.panelList = { "Rules", "Purge" }
LeoGM.members = {}
@@ -359,7 +359,7 @@ function LeoGM.PostScan()
end
end
if MasterMerchant then
- for sn, sellerData in pairs(MasterMerchant.guildSales["Forever Trading"].sellers) do
+ for sn, sellerData in pairs(MasterMerchant.guildSales[LeoGM.savedVariables.selectedGuild].sellers) do
for _, member in pairs(LeoGM.members) do
if sn == member.name and sellerData.sales[5] then
member.sales = member.sales + sellerData.sales[5]
diff --git a/LeoGuildManager.txt b/LeoGuildManager.txt
index ccb87a5..2e08bbb 100644
--- a/LeoGuildManager.txt
+++ b/LeoGuildManager.txt
@@ -1,6 +1,6 @@
## Title: Leo's Guild Manager
## APIVersion: 100024
-## Version: 0.9.0
+## Version: 0.9.1
## Author: |c39B027@LeandroSilva|r
## SavedVariables: LeoGMSavedVariables
## DependsOn: LibStub LibFeedback MasterMerchant