Browse Source

Reset plr_self after leaving game session

pull/4930/head
staphen 4 years ago committed by Anders Jenbo
parent
commit
833ba4209c
  1. 1
      Source/dvlnet/base.cpp

1
Source/dvlnet/base.cpp

@ -397,6 +397,7 @@ bool base::SNetLeaveGame(int type)
auto pkt = pktfty->make_packet<PT_DISCONNECT>(plr_self, PLR_BROADCAST,
plr_self, type);
send(*pkt);
plr_self = PLR_BROADCAST;
return true;
}

Loading…
Cancel
Save