No point to call function 2 times when we already have the value we need
Darth Predator [12-22-16 - 04:15]
No point to call function 2 times when we already have the value we need
diff --git a/ElvUI_SLE/modules/sledatatexts/guild.lua b/ElvUI_SLE/modules/sledatatexts/guild.lua
index 1496018..49d9d9f 100644
--- a/ElvUI_SLE/modules/sledatatexts/guild.lua
+++ b/ElvUI_SLE/modules/sledatatexts/guild.lua
@@ -176,7 +176,7 @@ function DTP:update_Guild()
if T.IsInGuild() then
T.GuildRoster()
local guildTotal, online = T.GetNumGuildMembers()
- for i = 1, T.GetNumGuildMembers() do
+ for i = 1, guildTotal do
local _, _, _, _, _, _, _, _, connected, _, _, _, _, isMobile = T.GetGuildRosterInfo(i)
if isMobile then
online = online + 1