diff --git a/src/game.rs b/src/game.rs index 30a95a6..7a6600e 100644 --- a/src/game.rs +++ b/src/game.rs @@ -509,8 +509,9 @@ impl Game { if sprite.room_id.is_some() { let key = sprite.room_id.clone().unwrap(); - if room_id_changes.contains_key(&key) { - sprite.room_id = Some(room_id_changes.get(&key).unwrap().clone()); + let change = room_id_changes.get(&key); + if change.is_some() { + sprite.room_id = Some(change.unwrap().clone()); } }