From 6e5f287606a3039ee26eb4fc8c8f7a05deebe9f0 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 1 Jan 2017 14:57:30 -0500 Subject: Fixes and re-sync for puzzles - Updates to latest upstream (7cae89fb4b22c305b3fd98b4e1be065ad527a9f7). - Also fixes a bug relating to updating parts of the display. - Adds some docs. Change-Id: Idfcce66e0cf3c59e467bab42eafc161df2e495bb --- apps/plugins/puzzles/signpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/puzzles/signpost.c') diff --git a/apps/plugins/puzzles/signpost.c b/apps/plugins/puzzles/signpost.c index a2e431e746..ce27da1a9d 100644 --- a/apps/plugins/puzzles/signpost.c +++ b/apps/plugins/puzzles/signpost.c @@ -284,7 +284,7 @@ static int check_nums(game_state *orig, game_state *copy, int only_immutable) int i, ret = 1; assert(copy->n == orig->n); for (i = 0; i < copy->n; i++) { - if (only_immutable && !copy->flags[i] & FLAG_IMMUTABLE) continue; + if (only_immutable && !(copy->flags[i] & FLAG_IMMUTABLE)) continue; assert(copy->nums[i] >= 0); assert(copy->nums[i] <= copy->n); if (copy->nums[i] != orig->nums[i]) { -- cgit v1.2.3