Also copy -sd from -fd when no second engine defined
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 28 Mar 2016 07:56:38 +0000 (09:56 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 29 Mar 2016 14:51:35 +0000 (16:51 +0200)
If the second engine defaults to the first, and the first needs to
be run in a specific directory, the second engine would not start
if we do not copy its directory too.

args.h

diff --git a/args.h b/args.h
index 15c1630..8d07b20 100644 (file)
--- a/args.h
+++ b/args.h
@@ -1418,6 +1418,7 @@ InitAppData(char *lpCmdLine)
 
   if(!*appData.secondChessProgram) { // [HGM] scp defaults to fcp
     ASSIGN(appData.secondChessProgram, appData.firstChessProgram);
+    ASSIGN(appData.secondDirectory, appData.firstDirectory);
     appData.secondIsUCI = appData.firstIsUCI; // copy type too!
   }