From 1a2a13f6fb255d5f755c5ce937124eee5fba5667 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 14 May 2011 10:03:20 +0200 Subject: [PATCH] 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. --- backend.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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]; -- 1.7.0.4