From 5cdc8bb45069b50f1ff8f3abf16f2831622877b3 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 15 一月 2019 14:57:12 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Fight/MapTransferUtility.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Fight/MapTransferUtility.cs b/Fight/MapTransferUtility.cs
index 0aca46b..b92480e 100644
--- a/Fight/MapTransferUtility.cs
+++ b/Fight/MapTransferUtility.cs
@@ -956,7 +956,10 @@
                 {
                     if (NpcID != GeneralDefine.GatherSoulDZ)
                     {
-                        NPCInteractProcessor.InvokeEvent(E_NpcType.Func, NpcID, _npc.ServerInstID);
+                        if (_npc != null)
+                        {
+                            NPCInteractProcessor.InvokeEvent(E_NpcType.Func, NpcID, _npc.ServerInstID);
+                        }
                     }
                     Clear();
                 }

--
Gitblit v1.8.0