diff --git a/realm/lobby.gno b/realm/lobby.gno index 8f5db18..303817b 100644 --- a/realm/lobby.gno +++ b/realm/lobby.gno @@ -229,11 +229,11 @@ func LobbyQuit() { for i, pl := range sublob { if pl.player.Address == caller { lobby[tc] = append(sublob[:i], sublob[i+1:]...) + lobbyPlayer2Game.Remove(caller.String()) return } } } - lobbyPlayer2Game.Remove(caller.String()) panic("you are not in the lobby") }