diff --git a/parts/gameFuncs.lua b/parts/gameFuncs.lua index 53dabba4..3596a538 100644 --- a/parts/gameFuncs.lua +++ b/parts/gameFuncs.lua @@ -34,7 +34,7 @@ function applyLanguage() text=LANG.get(SETTING.locale) WIDGET.setLang(text.WidgetText) for k,v in next,TEXTOBJ do - if text[k]then + if rawget(text,k)then v:set(text[k]) end end diff --git a/parts/scenes/game.lua b/parts/scenes/game.lua index 89207d46..3545a8b9 100644 --- a/parts/scenes/game.lua +++ b/parts/scenes/game.lua @@ -359,12 +359,10 @@ function scene.draw() gc_setColor(1,1,1,.82) gc_draw(TEXTOBJ.modeName,modeTextPos,10) local M=GAME.curMode - if M then - if M.score and M.records[1]then - setFont(15) - gc_setColor(1,1,1,.6) - gc_print(M.scoreDisp(M.records[1]),modeTextPos,45) - end + if M and M.score and M.records[1]then + setFont(15) + gc_setColor(1,1,1,.6) + gc_print(M.scoreDisp(M.records[1]),modeTextPos,45) end --Replaying