From 28373b1fe5a5487129dd3e64e1eb84df37d8ef30 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 18 四月 2019 21:17:53 +0800
Subject: [PATCH] 382 修复在没有客户端地图数据的时候报错导致无法寻路

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

diff --git a/Fight/Stage/MapEditor/Game/ClientSceneManager.cs b/Fight/Stage/MapEditor/Game/ClientSceneManager.cs
index e11ffbc..a508a5b 100644
--- a/Fight/Stage/MapEditor/Game/ClientSceneManager.cs
+++ b/Fight/Stage/MapEditor/Game/ClientSceneManager.cs
@@ -452,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