]> git.draconx.ca Git - rrace.git/blobdiff - src/x11.c
Check victory condition so the game is winnable.
[rrace.git] / src / x11.c
index 9ded09ea75765c96d6ec8a5731864dcdedfc627b..598b11542fd3705772bd603fcece267bb8298a3f 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -143,7 +143,7 @@ void x11_redraw_game(struct app_state *state)
        w /= 5; h /= 5;
 
        for (i = 0; i < 25; i++) {
-               uint_least32_t *gp = state->board.game+1;
+               uint_least32_t *gp = state->board.game;
 
                redraw_tile(state, display, game,
                            gp[0], gp[1], gp[2],