修正排位座次号设置错误的bug

This commit is contained in:
zhl 2021-01-28 17:25:56 +08:00
parent b9eb9a7e43
commit c300d8cdbb

View File

@ -43,10 +43,9 @@ export class OnJoinCommand extends Command<CardGameState, {
if (seat != undefined) {
seat = +seat
if (seatSet.has(seat)) {
seatSet.delete(seat)
idx = seatSet.values().next().value
} else {
idx = seat;
} else {
idx = seatSet.values().next().value
}
} else {
idx = seatSet.values().next().value