From a50d5a3cfbc1e1e639e0c118cca494e596da8426 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期二, 11 九月 2018 21:27:54 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Dungeon/DungeonFightWin.cs | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/System/Dungeon/DungeonFightWin.cs b/System/Dungeon/DungeonFightWin.cs
index 6aa4552..3d4fa8b 100644
--- a/System/Dungeon/DungeonFightWin.cs
+++ b/System/Dungeon/DungeonFightWin.cs
@@ -119,6 +119,22 @@
DropItemManager.pickUpCallBack -= OnPickItem;
MainInterfaceWin.Event_Duplicates -= OnChangeFuncBtnPosEvent;
model.dungeonCoolDownEvent -= OnLeaveMapTimeEvent;
+
+ try
+ {
+ var mapId = PlayerDatas.Instance.baseData.MapID;
+ var mapConfig = Config.Instance.Get<MapConfig>(mapId);
+ if (mapConfig != null && mapConfig.MapFBType != (int)MapType.OpenCountry)
+ {
+ throw new NullReferenceException();
+ }
+ }
+ catch (Exception ex)
+ {
+ Debug.Log(ex.Message);
+ ExceptionCatcher.ReportException("鍓湰鎴樻枟鐣岄潰寮傚父鍏抽棴", ex.Message);
+ }
+
}
protected override void OnAfterClose()
--
Gitblit v1.8.0