1
0
Fork 0

Fix bug where alts once online are considered raiders until reload

This commit is contained in:
pigmonkey 2011-09-06 15:34:49 -04:00
parent ddebbedb6c
commit fe7e404ebe

View file

@ -126,7 +126,7 @@ function mod:CacheRaiders()
for i=1,GetNumGuildMembers() do for i=1,GetNumGuildMembers() do
local name, _, rank, _, _, _, note, _, online = GetGuildRosterInfo(i) local name, _, rank, _, _, _, note, _, online = GetGuildRosterInfo(i)
if self:IsRaider(i) then if self:IsRaider(i, true) then
rosterRaidersCache[name] = true rosterRaidersCache[name] = true
rosterRaidersCount = rosterRaidersCount + 1 rosterRaidersCount = rosterRaidersCount + 1
@ -140,11 +140,11 @@ function mod:CacheRaiders()
end end
end end
function mod:IsRaider(index) function mod:IsRaider(index, noCache)
local name, _, rank, _, _, _, note, _, online = GetGuildRosterInfo(index) local name, _, rank, _, _, _, note, _, online = GetGuildRosterInfo(index)
-- first check cache -- first check cache
if rosterRaidersCache[name] then if not noCache and rosterRaidersCache[name] then
return true return true
end end