diff options
Diffstat (limited to 'script/core/linker.lua')
-rw-r--r-- | script/core/linker.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/linker.lua b/script/core/linker.lua index 64aaef1c..46a76127 100644 --- a/script/core/linker.lua +++ b/script/core/linker.lua @@ -147,7 +147,10 @@ local function getID(source) end util.revertTable(IDList) local id = table.concat(IDList, '|') - local parentID = table.concat(IDList, '|', 1, -2) + local parentID + if #IDList > 1 then + parentID = table.concat(IDList, '|', 1, -2) + end return id, current, parentID end |