From c81d996312511b1a1a661cb9662beb313410f55b Mon Sep 17 00:00:00 2001 From: jugeeya Date: Mon, 28 Sep 2020 14:00:45 -0700 Subject: [PATCH] Fix buffer action when empty --- src/training/mash.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/training/mash.rs b/src/training/mash.rs index e9837bb..42beffc 100644 --- a/src/training/mash.rs +++ b/src/training/mash.rs @@ -55,7 +55,7 @@ pub fn buffer_follow_up() { pub fn get_current_buffer() -> Action { unsafe { - if !QUEUE.is_empty() { + if QUEUE.is_empty() { return Action::empty(); } @@ -119,7 +119,7 @@ pub unsafe fn get_command_flag_cat( } unsafe fn check_buffer(module_accessor: &mut app::BattleObjectModuleAccessor) { - if !QUEUE.is_empty() { + if QUEUE.is_empty() { return; }