From: Jason S. Ninneman Date: Tue, 20 Jun 2017 23:09:33 +0000 (-0700) Subject: Fix another ob1 error. X-Git-Tag: 1.1~187 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=9714c9fc2a9a81436bd654427b7e681ec43dd4ff;p=open-adventure.git Fix another ob1 error. --- diff --git a/main.c b/main.c index 233417e..15e7230 100644 --- a/main.c +++ b/main.c @@ -1027,7 +1027,7 @@ L2607: /* If a turn threshold has been met, apply penalties and tell * the player about it. */ - for (int i = turn_threshold_count; i >= 0; --i) + for (int i = 0; i < turn_threshold_count; ++i) { if (game.turns == turn_thresholds[i].threshold + 1) {