Allow Make Persistent on engine loaded from recent-engine menu
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 13 Jan 2017 12:22:27 +0000 (13:22 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 13 Jan 2017 15:39:25 +0000 (16:39 +0100)
This method of loading an engine from the list was not yet recorded
in the currentEngine[] array.

backend.c

index 4f1aad8..47b443b 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -11449,6 +11449,7 @@ RecentEngineEvent (int nr)
     if(mnemonic[n]) { // if somehow the engine with the selected nickname is no longer found in the list, we skip
        ReplaceEngine(&first, 0);
        FloatToFront(&appData.recentEngineList, command[n]);
+       ASSIGN(currentEngine[0], command[n]);
     }
 }