bugfix: missing array index
authorArun Persaud <arun@nubati.net>
Sun, 19 Sep 2010 20:16:40 +0000 (13:16 -0700)
committerArun Persaud <arun@nubati.net>
Fri, 8 Oct 2010 01:46:53 +0000 (18:46 -0700)
xboard.c

index dcc58b5..3d62a69 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -4489,7 +4489,7 @@ void XDrawPosition(w, repaint, board)
     if(DrawSeekGraph()) return; // [HGM] seekgraph: suppress any drawing if seek graph up
 
     if (board == NULL) {
-       if (!lastBoardValid) return;
+       if (!lastBoardValid[nr]) return;
        board = lastBoard[nr];
     }
     if (!lastBoardValid[nr] || (nr == 0 && lastFlipView != flipView)) {