From 17614d533f1fd8a4b37c0a7ef67a67c8dfe4690e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 26 九月 2022 19:00:33 +0800
Subject: [PATCH] 9701 【后端】【越南】【BT7】【主干】跨服竞技64位排位赛(修复多分区时可能同步空玩家列表的bug)

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossChampionship.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossChampionship.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossChampionship.py
index f2b6e44..4fc8b24 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossChampionship.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossChampionship.py
@@ -1347,9 +1347,8 @@
     for zoneID in champMgr.GetChampPKZoneIDList():
         batPlayerList = []
         pkZoneMgr = champMgr.GetChampPKZoneMgr(zoneID)
-        if syncPlayerIDList == None:
-            syncPlayerIDList = pkZoneMgr.GetBatPlayerIDList()
-        for playerID in syncPlayerIDList:
+        playerIDList = pkZoneMgr.GetBatPlayerIDList() if syncPlayerIDList == None else syncPlayerIDList
+        for playerID in playerIDList:
             batPlayer = pkZoneMgr.GetBatPlayer(playerID)
             if not batPlayer:
                 continue
@@ -2021,9 +2020,8 @@
         if syncZonID != None and zoneID != syncZonID:
             continue
         offZoneMgr = champMgr.GetChampOfficialZoneMgr(zoneID)
-        if syncOfficialIDList == None:
-            syncOfficialIDList = offZoneMgr.officialInfo.keys()
-        for officialID in syncOfficialIDList:
+        officialIDList = offZoneMgr.officialInfo.keys() if syncOfficialIDList == None else syncOfficialIDList
+        for officialID in officialIDList:
             offObj = offZoneMgr.GetOfficialObj(officialID)
             if not offObj:
                 continue

--
Gitblit v1.8.0