From dc7275ac9b56f26923c80c1e8bbce185c2d147a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 22 Nov 2019 14:28:00 +0800 Subject: =?UTF-8?q?=E7=AE=80=E5=8D=95=E6=8E=A5=E5=85=A5=20hover=20?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/vm/getValue.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server-beta/src/vm/getValue.lua') diff --git a/server-beta/src/vm/getValue.lua b/server-beta/src/vm/getValue.lua index c8d62574..07ebe2a5 100644 --- a/server-beta/src/vm/getValue.lua +++ b/server-beta/src/vm/getValue.lua @@ -768,7 +768,10 @@ end function vm.isSameValue(a, b) local valuesA = vm.getValue(a) local valuesB = vm.getValue(b) - if valuesA == valuesB and valuesA ~= nil then + if not valuesA or not valuesB then + return false + end + if valuesA == valuesB then return true end local values = {} -- cgit v1.2.3