修复观战,假设玩家座位号为0做排错处理

master
罗家炜 2025-06-22 18:25:25 +08:00
parent bdb6f43110
commit ed03b29d9b
1 changed files with 5 additions and 5 deletions

View File

@ -71,10 +71,10 @@ function M:InitView(url)
local list = _room.player_list
for i = 1, #list do
local p = list[i]
if p.seat then
local info = _player_info[self:GetPos(p.seat)]
else
local info = _player_info[self:GetPos(1)]
local info = _player_info[self:GetPos(p.seat)]
if not p.seat or p.seat == 0 then
p.seat = i
info = _player_info[self:GetPos(i)]
end
info._view.visible = true