From 0dda6b752c530be0648384a499da549b44d3ec11 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 23 二月 2020 00:04:00 +0800
Subject: [PATCH] 4679 【主干】【bug】地图未启动好触发上架系统拍品无法上架

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 46c1f92..51748dc 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -1436,6 +1436,11 @@
 def __GetEquipIDList(findID, classLV, color, isSuit, placeList, itemJobList, findType="NPC"):
     #存一个满足要求的所有的物品的列表 然后从当中随机选一个
     #注: 阶、颜色、套装ID、职业、部位,这5个条件可确认唯一一件装备
+    
+    if not PyGameData.InitPyItem:
+        GameWorld.ErrLog("地图还未启动好载物品!")
+        return []
+    
     key = "%s_%s" % (classLV, color)
     
     if key in PyGameData.g_filterEquipDict:

--
Gitblit v1.8.0