From 6054a82822cbeee91566c75b1b9402539c684849 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 15 八月 2022 17:02:44 +0800
Subject: [PATCH] 5424 【主干】【yn_1.0.1】【bt7】【qkbt52】【x7bt5】跨服战场报错LoadMapOK地图报错(跨服战场防报错)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py
index 9d60245..58a3fd1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py
@@ -491,6 +491,8 @@
 def GetBattleFactionObj(faction):
     factionObj = None
     factionInfoDict = FBCommon.GetGameFBData(GameFBData_FactionInfo)
+    if factionInfoDict == None:
+        factionInfoDict = {}
     if faction in factionInfoDict:
         factionObj = factionInfoDict[faction]
     else:        
@@ -501,6 +503,8 @@
 def GetBattlePlayerObj(playerID):
     playerObj = None
     playerInfoDict = FBCommon.GetGameFBData(GameFBData_PlayerInfo)
+    if playerInfoDict == None:
+        playerInfoDict = {}
     if playerID in playerInfoDict:
         playerObj = playerInfoDict[playerID]
     else:        

--
Gitblit v1.8.0