From ece7760d17592dfcadef52e47848836b13cf3f47 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 11 一月 2020 16:13:38 +0800
Subject: [PATCH] 1111 MissionDir命令找不到任务名报错防范
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MissionDir.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MissionDir.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MissionDir.py
index 18b535e..97539e6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MissionDir.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MissionDir.py
@@ -45,7 +45,8 @@
MissionState = curMission.GetState()
DescriptionIndex = curMission.GetDescriptionIndex()
curQuestData = QuestManager.FindQuest(MissionID)
- GameWorld.DebugAnswer(curPlayer, "ID:%d\t状态:%d\t索引:%d %s" % (MissionID, MissionState, DescriptionIndex, curQuestData.Name))
+ name = curQuestData.Name if curQuestData else ""
+ GameWorld.DebugAnswer(curPlayer, "ID:%d\t状态:%d\t索引:%d %s" % (MissionID, MissionState, DescriptionIndex, name))
if not isShowKey:
return
--
Gitblit v1.8.0