From e0690e0816310b98e19662677f1754678884197b Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 17 Feb 2021 17:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=A8=E8=A7=A3=E9=94=81?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E7=9A=84=E4=B8=80=E4=B8=AA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/calculator.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/scenes/calculator.lua b/parts/scenes/calculator.lua index 84438902..3934b980 100644 --- a/parts/scenes/calculator.lua +++ b/parts/scenes/calculator.lua @@ -82,7 +82,7 @@ function scene.keyDown(k) elseif v==7294e4+3816 then pass=true for name,M in next,MODES do - if not RANKS[name]and M.x then + if type(name)=="string"and not RANKS[name]and M.x then RANKS[name]=M.score and 0 or 6 end end