From d7d9f771279f9a35fbb84f079cc6470238b47af0 Mon Sep 17 00:00:00 2001 From: SweetSea-ButImNotSweet Date: Sun, 6 Oct 2024 12:17:44 +0000 Subject: [PATCH] Fix buttons in replay scene broken Signed-off-by: SweetSea-ButImNotSweet --- scene/replay.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/replay.lua b/scene/replay.lua index 6666013..a8bc0b2 100644 --- a/scene/replay.lua +++ b/scene/replay.lua @@ -154,8 +154,8 @@ function ReplaySelectScene:onInputPress(e) local selected_replay_text = self.replay_text[self.replay_select + ((self.page-1) * self.page_flip)] if ( - e.type == "touch" or e.type == "mouse") and - not BUTTON.press(buttonList, e.x, e.y, e.id and + (e.type == "touch" or e.type == "mouse") and + not BUTTON.press(buttonList, e.x, e.y, e.id) and #self.replays > 0 ) then local selection = math.floor((e.y - 15) / 30)