From 7163068df26228ee0376d7d9e220615561adc6f7 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 9 Sep 2009 18:22:14 +0000 Subject: [PATCH] Fix width/height braino introduced in r5844. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8643 cda61777-01e9-0310-a592-d414129be87e --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index 2b5275e..ecbbbfb 100644 --- a/net.c +++ b/net.c @@ -1652,7 +1652,7 @@ static game_state *new_game(midend *me, game_params *params, char *desc) if (!(barrier(state, x, 0) & U) || !(barrier(state, x, state->height-1) & D)) state->wrapping = TRUE; - for (y = 0; y < state->width; y++) + for (y = 0; y < state->height; y++) if (!(barrier(state, 0, y) & L) || !(barrier(state, state->width-1, y) & R)) state->wrapping = TRUE; -- 2.11.0