diff --git a/worldsrv/action_game.go b/worldsrv/action_game.go index fbc7795..360feeb 100644 --- a/worldsrv/action_game.go +++ b/worldsrv/action_game.go @@ -1344,7 +1344,7 @@ func CSCreatePrivateRoomHandler(s *netlib.Session, packetId int, data interface{ return nil } - if cfg.GetCostType() == 2 { + if costType == 2 { sp.CostPayment(scene, p) }