From 5e7f3b5e957c183fcaed9a9ebdcd4ca8137ca846 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 28 Mar 2012 12:25:20 +0200 Subject: [PATCH] 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). --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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(); } -- 1.7.0.4