Fix width/height braino introduced in r5844.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 9 Sep 2009 18:22:14 +0000 (18:22 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 9 Sep 2009 18:22:14 +0000 (18:22 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8643 cda61777-01e9-0310-a592-d414129be87e

net.c

diff --git a/net.c b/net.c
index 2b5275e..ecbbbfb 100644 (file)
--- 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;