fixed handling of blank uinames

This commit is contained in:
Redo 2019-04-18 23:14:41 -05:00
parent b3176c4ccf
commit 1f0b6f8629

View File

@ -146,7 +146,7 @@ while 1 do
elseif data[i] == "GD" then
--print(table.concat(data, "\n", i, math.min(#data, i+100)))
local objref = tonumber(data[i+1])
local name = data[i+2]
local name = data[i+2] or ""
local desc = data[i+3]
local init = data[i+4]
local logic = data[i+5]
@ -161,7 +161,7 @@ while 1 do
position = vectotable(data[a+1]),
direction = tonumber(data[a+2]),
causeupdate = toboolean(data[a+3]),
name = data[a+4],
name = data[a+4] or "",
}
ports[#ports+1] = port