Short idx = posHashToNodeIdx.get(gt.currentPos.zobristHash());
boolean inEcoTree = idx != null;
toCache.add(new Pair<GameTree.Node,Boolean>(node, inEcoTree));
if (idx != null) {
Node ecoNode = readNode(idx);
<BUG>if (ecoNode.nameIdx != -1) {
</BUG>
nodeIdx = idx;
break;
}

Short idx = posHashToNodeIdx.get(gt.currentPos.zobristHash());
boolean inEcoTree = idx != null;
toCache.add(new Pair<GameTree.Node,Boolean>(node, inEcoTree));
if (idx != null) {
Node ecoNode = readNode(idx);
if (ecoNode.ecoIdx != -1) {
nodeIdx = idx;
break;
