From 745a3fe1a9d33584fcda6abd5925af544f4897e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 13 Mar 2019 15:09:19 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=AA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/signature.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/core') 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 -- cgit v1.2.3