From 5cbbebbe00b5f27d1f9c7dfcfc3855e505a0045a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Sat, 2 Jan 2021 19:36:46 +0100 Subject: [PATCH] Bugfix 0.. is the same as 0..0 --- src/game/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/app.rs b/src/game/app.rs index 438f2e7..e1fafdc 100644 --- a/src/game/app.rs +++ b/src/game/app.rs @@ -83,7 +83,7 @@ impl ActiveState { self.add_boll(); } } else if delta < 0 { - for _i in 0..delta { + for _i in 0..(-delta) { self.bolls.pop(); } } -- 2.11.0