From: H.G. Muller Date: Sat, 14 May 2011 08:03:20 +0000 (+0200) Subject: Fix initialization of engine state X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1a2a13f6fb255d5f755c5ce937124eee5fba5667;p=xboard.git Fix initialization of engine state Some of the initialization relied on variables being zero at startup, which meant value from the previouly loaded engine hng on after loading a new one. --- diff --git a/backend.c b/backend.c index d14530f..8916211 100644 --- a/backend.c +++ b/backend.c @@ -796,7 +796,11 @@ InitEngine(ChessProgramState *cps, int n) /* [HGM] debug */ cps->debug = FALSE; + cps->supportsNPS = UNKNOWN; + cps->memSize = FALSE; + cps->maxCores = FALSE; + cps->egtFormats[0] = NULLCHAR; /* [HGM] options */ cps->optionSettings = appData.engOptions[n];