From bec36ec8978353b895a5154d332568bcbcbb6812 Mon Sep 17 00:00:00 2001 From: jugeeya Date: Wed, 19 Aug 2020 20:31:15 -0700 Subject: [PATCH] fix empty mash option breaking --- src/training/mash.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/training/mash.rs b/src/training/mash.rs index 6828ddd..96a635f 100644 --- a/src/training/mash.rs +++ b/src/training/mash.rs @@ -20,6 +20,10 @@ pub fn buffer_action(action: Action) { } } + if action == Action::empty() { + return; + } + unsafe { QUEUE.insert(0, action); buffer_follow_up();