From 00f2d1c4a8fbed2138dcc3232e5898bd3c83baca Mon Sep 17 00:00:00 2001 From: Rin Date: Sat, 21 Aug 2021 21:02:49 +0100 Subject: [PATCH] Fix stuff --- tetris/modes/marathon_c99.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tetris/modes/marathon_c99.lua b/tetris/modes/marathon_c99.lua index ad45ce6..703e456 100644 --- a/tetris/modes/marathon_c99.lua +++ b/tetris/modes/marathon_c99.lua @@ -47,8 +47,10 @@ local slots_table = { local slot_popup = {["text"]="",["time"]=0,["slotnum"]=0} local line_popup = {["y"]=0,["score"]=0,["lines"]=0} -function MarathonC99Game:new(cfg) - self.super:new(cfg) +function MarathonC99Game:new(_, cfg) + if cfg == nil then cfg = {} end -- Don't break older Cambridge versions + + self.super:new(_, cfg) self.grid = Grid(10, 22) self.additive_gravity = false