Fix bug in ICS variant switch for Shogi
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 10 Oct 2010 19:26:11 +0000 (21:26 +0200)
committerArun Persaud <arun@nubati.net>
Sat, 16 Oct 2010 02:24:35 +0000 (19:24 -0700)
Because a test for 8x8 variants was done by <= VariantShogi,
rather than <, spurious move-list fetching occurred in Shogi.

backend.c

index c517305..6bd4418 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -4008,7 +4008,7 @@ ParseBoard12(string)
     }
 
    if (gameInfo.boardHeight != ranks || gameInfo.boardWidth != files ||
-                                       weird && (int)gameInfo.variant <= (int)VariantShogi) {
+                                       weird && (int)gameInfo.variant < (int)VariantShogi) {
      /* [HGM] We seem to have switched variant unexpectedly
       * Try to guess new variant from board size
       */