Mercurial > wow > ouroloot
diff text_tabs.lua @ 68:3bed6d51e077
Make sure subgroup field is always set to non-nil. ("Belt *and* suspenders." Handle a previously-set nil field during text creation.)
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Wed, 09 May 2012 09:38:14 +0000 |
parents | c01875b275ca |
children | 8442272a8418 |
line wrap: on
line diff
--- a/text_tabs.lua Tue May 08 02:41:23 2012 +0000 +++ b/text_tabs.lua Wed May 09 09:38:14 2012 +0000 @@ -148,7 +148,7 @@ -- Assumption: everybody is packed into the first N groups. if raidertable then for name,info in pairs(raidertable) do if info.online ~= 3 then -- 3 == left the raid - if info.subgroup <= max_group_number then + if (info.subgroup or (NUM_RAID_GROUPS+1)) <= max_group_number then tins (ingroups, name) else tins (outgroups, name)