修复其他玩家进房check是否已存在的时候因为访问不存在的玩家而报错
This commit is contained in:
@@ -650,7 +650,7 @@ function NET.wsCallBack.room_enter(body)
|
||||
end
|
||||
else
|
||||
local p=body.data
|
||||
if NETPLY.map[p.playerId] then _playerLeaveRoom(p.playerId) end
|
||||
if NETPLY.exist(p.playerId) then _playerLeaveRoom(p.playerId) end
|
||||
NETPLY.add{
|
||||
uid=p.playerId,
|
||||
group=p.group,
|
||||
|
||||
Reference in New Issue
Block a user