From 5c3c9592c538ec4d3c1b757d9f0482ee6b266abb Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Thu, 27 Jul 2023 15:38:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20room.NewManager=20?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=88=9D=E5=A7=8B=E5=8C=96=20rp=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/room/manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/game/room/manager.go b/game/room/manager.go index a74cd29..558f2c2 100644 --- a/game/room/manager.go +++ b/game/room/manager.go @@ -13,6 +13,7 @@ func NewManager[PID comparable, P game.Player[PID], R Room]() *Manager[PID, P, R rooms: concurrent.NewBalanceMap[int64, *info[PID, P, R]](), players: concurrent.NewBalanceMap[PID, P](), pr: concurrent.NewBalanceMap[PID, map[int64]struct{}](), + rp: concurrent.NewBalanceMap[int64, map[PID]struct{}](), } return manager