m
Correcting a small bug with the perc >= 1 case
(Optimized function) |
m (Correcting a small bug with the perc >= 1 case) |
||
| Line 8: | Line 8: | ||
if perc >= 1 then | if perc >= 1 then | ||
local r, g, b = select(num-2, ...) | local r, g, b = select(num*3-2, ...) | ||
return r, g, b | return r, g, b | ||
elseif perc <= 0 then | elseif perc <= 0 then | ||