comparison 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
comparison
equal deleted inserted replaced
67:c01875b275ca 68:3bed6d51e077
146 table.insert, table.wipe, table.sort, table.concat 146 table.insert, table.wipe, table.sort, table.concat
147 147
148 -- Assumption: everybody is packed into the first N groups. 148 -- Assumption: everybody is packed into the first N groups.
149 if raidertable then for name,info in pairs(raidertable) do 149 if raidertable then for name,info in pairs(raidertable) do
150 if info.online ~= 3 then -- 3 == left the raid 150 if info.online ~= 3 then -- 3 == left the raid
151 if info.subgroup <= max_group_number then 151 if (info.subgroup or (NUM_RAID_GROUPS+1)) <= max_group_number then
152 tins (ingroups, name) 152 tins (ingroups, name)
153 else 153 else
154 tins (outgroups, name) 154 tins (outgroups, name)
155 end 155 end
156 end 156 end