fix for bug #27772: holdings not updated
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 22 Oct 2009 06:01:09 +0000 (23:01 -0700)
committerArun Persaud <arun@nubati.net>
Thu, 22 Oct 2009 06:01:09 +0000 (23:01 -0700)
holdings lines from the ICS nor update the holdings of boards[forwardMostMove] in stead of boards[currentMove].

backend.c

index e608307..acb9123 100755 (executable)
--- a/backend.c
+++ b/backend.c
@@ -3301,8 +3301,8 @@ read_from_ics(isr, closure, data, count, error)
                         white_holding[strlen(white_holding)-1] = NULLCHAR;
                         black_holding[strlen(black_holding)-1] = NULLCHAR;
                         /* [HGM] copy holdings to board holdings area */
-                        CopyHoldings(boards[currentMove], white_holding, WhitePawn);
-                        CopyHoldings(boards[currentMove], black_holding, BlackPawn);
+                        CopyHoldings(boards[forwardMostMove], white_holding, WhitePawn);
+                        CopyHoldings(boards[forwardMostMove], black_holding, BlackPawn);
 #if ZIPPY
                        if (appData.zippyPlay && first.initDone) {
                            ZippyHoldings(white_holding, black_holding,