chiark / gitweb /
Fix width/height braino introduced in r5844.
authorSimon Tatham <anakin@pobox.com>
Wed, 9 Sep 2009 18:22:14 +0000 (18:22 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 9 Sep 2009 18:22:14 +0000 (18:22 +0000)
[originally from svn r8643]
[r5844 == 865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20]

net.c

diff --git a/net.c b/net.c
index 2b5275e0972a8ebb4da490ed3a3f806ff6c96d65..ecbbbfbbbb27876cb00c8869381d71f17a61fc74 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;