From 07d0910aa096a0a8a1c29ecf8ba64daf8774e6ce Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期五, 31 八月 2018 10:38:40 +0800
Subject: [PATCH] Fixed #382 更新推拉的逻辑可能造成的报错逻辑保护
---
Fight/GameActor/GActorFight.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Fight/GameActor/GActorFight.cs b/Fight/GameActor/GActorFight.cs
index 6dd057d..5d6e527 100644
--- a/Fight/GameActor/GActorFight.cs
+++ b/Fight/GameActor/GActorFight.cs
@@ -251,6 +251,12 @@
GActor _attacker = GAMgr.Instance.GetBySID(m_AttackerSID);
+ if (_attacker == null)
+ {
+ m_Beating = false;
+ return;
+ }
+
float _dis = MathUtility.DistanceSqrtXZ(_attacker.Pos, _end);
if (m_PushOrPull)
--
Gitblit v1.8.0