[F] Fix type

This commit is contained in:
Azalea Gui
2023-03-09 00:29:36 -05:00
parent 16dd20bde3
commit b25391560c
+1 -1
View File
@@ -435,7 +435,7 @@ async fn pull_input(mt: Arc<Mutex<Mutes>>, cn: &Consts) -> Result<()> {
{ {
let mut mt = mt.lock().await; let mut mt = mt.lock().await;
let mut move_x = |amount: i32| { let mut move_x = |amount: i32| {
mt.x = (mt.x as i32 + amount).max(0).min((mt.w - cn.asc_cat.w) as i32) as u16; mt.x = (mt.x + amount).max(0).min((mt.w - cn.asc_cat.w));
if mt.state == State::Welcome { if mt.state == State::Welcome {
mt.state = State::Exploring; mt.state = State::Exploring;
} }