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