1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-02-26 11:00:23 +00:00

Fix buffer action when empty

This commit is contained in:
jugeeya 2020-09-28 14:00:45 -07:00 committed by GitHub
parent e62d602895
commit c81d996312
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ pub fn buffer_follow_up() {
pub fn get_current_buffer() -> Action { pub fn get_current_buffer() -> Action {
unsafe { unsafe {
if !QUEUE.is_empty() { if QUEUE.is_empty() {
return Action::empty(); return Action::empty();
} }
@ -119,7 +119,7 @@ pub unsafe fn get_command_flag_cat(
} }
unsafe fn check_buffer(module_accessor: &mut app::BattleObjectModuleAccessor) { unsafe fn check_buffer(module_accessor: &mut app::BattleObjectModuleAccessor) {
if !QUEUE.is_empty() { if QUEUE.is_empty() {
return; return;
} }