1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-25 07:46:11 +00:00

Fix clippy

This commit is contained in:
jugeeya 2023-12-13 17:06:42 -08:00 committed by GitHub
parent 1475fb2509
commit 99b0d88f44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
src/training

View file

@ -111,7 +111,7 @@ unsafe fn buff_hero(module_accessor: &mut app::BattleObjectModuleAccessor, statu
set_buff_rem(module_accessor, buff_vec.len());
// Since it's the first step of buffing, we need to set up how many buffs there are
}
if get_buff_rem(module_accessor) <= 0 {
if get_buff_rem(module_accessor) == 0 {
// If there are no buffs selected/left, we're done
if frame_counter::should_delay(3_u32, *BUFF_DELAY_COUNTER) {
// Need to wait 3 frames to make sure we stop the spell SFX, since it's a bit delayed

View file

@ -18,7 +18,7 @@ mod input_log;
pub mod menu;
pub mod notifications;
pub unsafe fn set_icon_text(pane: &mut TextBox, icons: &Vec<u16>) {
pub unsafe fn set_icon_text(pane: &mut TextBox, icons: &[u16]) {
pane.set_text_string("");
let it = pane.text_buf as *mut u16;