From 62015b52eae8109d657ed9359d966f95eef295a3 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期五, 31 八月 2018 10:36:07 +0800
Subject: [PATCH] Fixed #382 前端AI可能导致的报错保护
---
Fight/Actor/AI/SampleAI.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Fight/Actor/AI/SampleAI.cs b/Fight/Actor/AI/SampleAI.cs
index f7a74f6..83583d5 100644
--- a/Fight/Actor/AI/SampleAI.cs
+++ b/Fight/Actor/AI/SampleAI.cs
@@ -142,6 +142,12 @@
{
// 鑻遍泟鏄惁瀛樺湪
GA_Hero _hero = PlayerDatas.Instance.hero;
+
+ if (_hero == null)
+ {
+ return;
+ }
+
// 鎸佹湁鑰呮槸鍚﹀凡缁忔浜�
if (m_Owner == null
|| m_Owner.ActorInfo == null
--
Gitblit v1.8.0