diff options
-rw-r--r-- | server/src/core/signature.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/signature.lua b/server/src/core/signature.lua index 7d217593..6cb3bca5 100644 --- a/server/src/core/signature.lua +++ b/server/src/core/signature.lua @@ -24,6 +24,9 @@ local function findCall(vm, pos) end local function getSelect(args, pos) + if not args then + return 1 + end for i, arg in ipairs(args) do if arg.start <= pos and arg.finish >= pos - 1 then return i |