From: Jason S. Ninneman Date: Tue, 20 Jun 2017 22:43:08 +0000 (-0700) Subject: Fix off-by-one error. X-Git-Tag: 1.1~189 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=acc07e1287a45ac3c82f7101c9f60ef2d6c88379;p=open-adventure.git Fix off-by-one error. --- 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);