wesnothd: fix game host kick command kicking host itself instead of intended target
This commit is contained in:
parent
d217dfc13c
commit
40ae6c5356
1 changed files with 1 additions and 1 deletions
|
@ -1550,7 +1550,7 @@ void server::handle_player_in_game(socket_ptr socket, std::shared_ptr<simple_wml
|
|||
(ban ? g.ban_user(*data.child("ban"), socket)
|
||||
: g.kick_member(*data.child("kick"), socket));
|
||||
if (user) {
|
||||
player_connections_.modify(player_connections_.find(socket), player_record::enter_lobby);
|
||||
player_connections_.modify(player_connections_.find(user), player_record::enter_lobby);
|
||||
if (g.describe_slots()) {
|
||||
update_game_in_lobby(g, user);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue