Fix Clear Hash option
authorH.G. Muller <h.g.muller@hccnet.nl>
Mon, 11 Feb 2013 13:05:46 +0000 (14:05 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 12 Feb 2013 09:06:06 +0000 (10:06 +0100)
The Clear Hash option was not properly tested for, and was thus ignored.

fairymax.c

index 8b28a6c..cbedcbd 100644 (file)
@@ -747,7 +747,7 @@ int main(int argc, char **argv)
                        if(sscanf(line+7, "Ini File=%s", filename) == 1) {\r
                                inifile = filename; continue;\r
                        }\r
-                       if(sscanf(line+7, "Clear Hash") == 1) for(i=0; i<=U; i++) A->K = 0;\r
+                       if(sscanf(line+7, "Clear Hash%c", &c) == 1) for(i=0; i<=U; i++) A->K = 0;\r
                        if(sscanf(line+7, "MultiVariation Margin=%d", &margin) == 1) continue;\r
                        if(sscanf(line+7, "Variant fairy selects=%s", selectedFairy+6) == 1) continue;\r
                        if(sscanf(line+7, "Cambodian Makruk rules=%d", &Cambodian) == 1) continue;\r