From: H.G. Muller Date: Thu, 22 Oct 2009 06:01:09 +0000 (-0700) Subject: fix for bug #27772: holdings not updated X-Git-Tag: v4.4.1.20091022~9 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8f1c9fee822580af366e6e3624ba7354e1126ce8;p=xboard.git fix for bug #27772: holdings not updated holdings lines from the ICS nor update the holdings of boards[forwardMostMove] in stead of boards[currentMove]. --- diff --git a/backend.c b/backend.c index e608307..acb9123 100755 --- 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,