refactor (will this help?)

This commit is contained in:
Max Bradbury 2020-07-02 15:04:21 +01:00
parent 64f75f6f83
commit 4978d263f1
1 changed files with 3 additions and 2 deletions

View File

@ -509,8 +509,9 @@ impl Game {
if sprite.room_id.is_some() { if sprite.room_id.is_some() {
let key = sprite.room_id.clone().unwrap(); let key = sprite.room_id.clone().unwrap();
if room_id_changes.contains_key(&key) { let change = room_id_changes.get(&key);
sprite.room_id = Some(room_id_changes.get(&key).unwrap().clone()); if change.is_some() {
sprite.room_id = Some(change.unwrap().clone());
} }
} }