From: H.G. Muller Date: Wed, 28 Mar 2012 10:25:20 +0000 (+0200) Subject: Fix bug on loading engine X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=5e7f3b5e957c183fcaed9a9ebdcd4ca8137ca846;p=xboard.git Fix bug on loading engine A newly loaded engine was put at the end of the game, rather than at the current position, (which is required in EditGame mode). --- diff --git a/backend.c b/backend.c index 5715e5d..e474fd4 100644 --- a/backend.c +++ b/backend.c @@ -851,7 +851,7 @@ LoadEngine () SendToProgram("force\n", savCps); DisplayMessage("", ""); if (startedFromSetupPosition) SendBoard(savCps, backwardMostMove); - for (i = backwardMostMove; i < forwardMostMove; i++) SendMoveToProgram(i, savCps); + for (i = backwardMostMove; i < currentMove; i++) SendMoveToProgram(i, savCps); ThawUI(); SetGNUMode(); }