From 1f5ac3a686ecb0c7771b85ef84757cd4f440f5b3 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 18 四月 2019 21:19:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Fight/Stage/MapEditor/Game/ClientSceneManager.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Fight/Stage/MapEditor/Game/ClientSceneManager.cs b/Fight/Stage/MapEditor/Game/ClientSceneManager.cs
index c4a81a3..a508a5b 100644
--- a/Fight/Stage/MapEditor/Game/ClientSceneManager.cs
+++ b/Fight/Stage/MapEditor/Game/ClientSceneManager.cs
@@ -276,6 +276,11 @@
 
     public Vector3 GetNext1(Vector3 start, Vector3 dest)
     {
+        if (m_MapData == null)
+        {
+            return Vector3.zero;
+        }
+
         count = 0;
         m_ChkedList1.Clear();
 
@@ -447,7 +452,7 @@
     private Vector3 GetNext(Vector3 start, Vector3 next)
     {
         count += 1;
-        if (count > 20 || next == Vector3.zero)
+        if (count > 20 || next == Vector3.zero || m_MapData == null)
         {
             return Vector3.zero;
         }

--
Gitblit v1.8.0