Quick patch to fix texture errors.

Reportedly, the color would be nil in some rare case.
This commit is contained in:
Diego Martinez 2014-09-19 15:55:17 -03:00
parent 763d8fa200
commit 5dd778cbdf
1 changed files with 1 additions and 0 deletions

View File

@ -341,6 +341,7 @@ end
local math_max = math.max
local function fill_line(x, y, w, c)
c = c or "0"
local tex = { }
for xx = 0, math.max(0, w-16), 16 do
table.insert(tex, (":%d,%d=slc_%s.png"):format(x + xx, y, c))