diff options
Diffstat (limited to 'script/core/noder.lua')
-rw-r--r-- | script/core/noder.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 40a0bb82..a63a1c25 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -313,7 +313,10 @@ local getKeyMap = util.switch() : call(function (source) local name = source[1] if source.typeGeneric then - return 'dg:' .. source.typeGeneric[name][1].start, nil + local first = source.typeGeneric[name][1] + if first then + return 'dg:' .. first.start, nil + end else return 'dn:' .. name, nil end |