From ad04ba48e178b4e8f3edcfa1b0eb5deba31cc2a0 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 09 八月 2019 11:01:31 +0800 Subject: [PATCH] 1 【主干】修复系统中间商随机职业拍品人数为0时报错 --- ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py index adc2ff1..6ca7fd6 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py @@ -661,6 +661,7 @@ openJobList = IpyGameDataPY.GetFuncEvalCfg("OpenJob", 1) for job in openJobList: jobPlayerCount = len(PyGameData.g_onedayJobPlayerLoginoffTimeDict.get(job, {})) + jobPlayerCount = max(1, jobPlayerCount) # 人数默认至少1个 totalPlayerCount += jobPlayerCount jobWeightList.append([jobPlayerCount, job]) GameWorld.DebugLog("职业人数: job=%s,count=%s" % (job, jobPlayerCount)) -- Gitblit v1.8.0