From 8dac055bd64eab6206b2732b9677dcaa7823fc51 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Wed, 11 Sep 2024 09:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E5=85=A5=E6=88=BF=E9=97=B4=E6=88=BF?= =?UTF-8?q?=E5=8D=A1=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_game.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldsrv/action_game.go b/worldsrv/action_game.go index 1b5664b..fbc7795 100644 --- a/worldsrv/action_game.go +++ b/worldsrv/action_game.go @@ -106,7 +106,7 @@ func (this *CSEnterRoomHandler) Process(s *netlib.Session, packetid int, data in // 房费是否充足 if scene.IsCustom() { cfg := PlatformMgrSingleton.GetConfig(p.Platform).RoomConfig[scene.RoomConfigId] - if cfg.GetCostType() == 1 && !scene.sp.CostEnough(int(scene.CostType), scene.playerNum, cfg, p) { + if scene.CostType == 1 && !scene.sp.CostEnough(int(scene.CostType), scene.playerNum, cfg, p) { code = gamehall.OpResultCode_Game_OPRC_CostNotEnough logger.Logger.Trace("CSEnterRoomHandler cost error") goto failed