refactor (will this help?)
This commit is contained in:
parent
64f75f6f83
commit
4978d263f1
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue