Fix buttons in replay scene broken

Signed-off-by: SweetSea-ButImNotSweet <sweetsea-butimnotsweet@noreply.gitea.com>
This commit is contained in:
SweetSea-ButImNotSweet
2024-10-06 12:17:44 +00:00
parent c0089fc4a5
commit d7d9f77127

View File

@@ -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)