Fix rejoining game causing lobby to be empty
This commit is contained in:
parent
d606ad04a9
commit
c6aedf8b22
@ -59,6 +59,7 @@ impl GameManager {
|
||||
}
|
||||
|
||||
pub fn init_game(&mut self, is_host: bool) {
|
||||
self.exiting = false;
|
||||
if let Some(mut game) = self.game.take() {
|
||||
game.queue_free();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user