Fix rejoining game causing lobby to be empty

This commit is contained in:
Sofia 2026-07-23 22:48:26 +03:00
parent 9a95306ed3
commit 943a872d96

View File

@ -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();
}