fixed monte carlo NPE's

This commit is contained in:
BetaSteward 2011-11-22 13:56:00 -05:00
parent ec297c243c
commit c902998fa0
2 changed files with 1 additions and 1 deletions

View file

@ -271,7 +271,7 @@ public class MCTSNode {
for (MCTSNode node: children) {
// logger.info(state);
// logger.info(node.stateValue);
if (node.stateValue == state) {
if (node.stateValue == state && node.action != null) {
return node;
}
MCTSNode match = node.getMatchingState(state);