From acc07e1287a45ac3c82f7101c9f60ef2d6c88379 Mon Sep 17 00:00:00 2001 From: "Jason S. Ninneman" Date: Tue, 20 Jun 2017 15:43:08 -0700 Subject: [PATCH] Fix off-by-one error. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 1fb31ac..1b326af 100644 --- a/main.c +++ b/main.c @@ -1029,7 +1029,7 @@ L2607: * the player about it. */ for (int i = turn_threshold_count; i >= 0; --i) { - if (game.turns == turn_thresholds[i].threshold) + if (game.turns == turn_thresholds[i].threshold + 1) { game.trnluz += turn_thresholds[i].point_loss; speak(turn_thresholds[i].message); -- 2.31.1