Skip to content

Commit

Permalink
fix: correctly remove user from lobby on LobbyQuit
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Sep 24, 2023
1 parent 4aebf6e commit f102836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realm/lobby.gno
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit f102836

Please sign in to comment.