From c1315e09b6a06bdc55922aeaffff18839e56e7bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80lex=20Rom=C3=A0n?= Date: Fri, 28 Aug 2026 23:03:10 +0200 Subject: [PATCH] Fix overflow --- src/input/buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/buffer.rs b/src/input/buffer.rs index 0b59299..925bb8f 100644 --- a/src/input/buffer.rs +++ b/src/input/buffer.rs @@ -126,7 +126,7 @@ pub fn postprocess_input( { input.frames_in_smash_move_deadzone = 0; } else { - input.frames_in_smash_move_deadzone += 1; + input.frames_in_smash_move_deadzone = input.frames_in_smash_move_deadzone.saturating_add(1); } }