aboutsummaryrefslogtreecommitdiff
path: root/src/grossmeister
diff options
context:
space:
mode:
Diffstat (limited to 'src/grossmeister')
-rw-r--r--src/grossmeister/move_selector.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/grossmeister/move_selector.rs b/src/grossmeister/move_selector.rs
index c55051e..08e5cf1 100644
--- a/src/grossmeister/move_selector.rs
+++ b/src/grossmeister/move_selector.rs
@@ -86,10 +86,11 @@ impl Grossmeister {
}
pub fn cleanup_selector(&mut self) {
- // Keep the killers!
- let killers = self.move_selector().killer_moves.clone();
- *self.move_selector() = MoveSelector::default();
- self.move_selector().killer_moves = killers;
+ let selector = self.move_selector();
+ selector.tactical_moves.clear();
+ selector.stage_moves.moves.clear();
+ selector.stage_moves.index = 0;
+ selector.stage = MoveGenStage::default();
}
/// Register killer for ply-before