From 2dc3809af9c0c35d0e77e35f5dbdc2264c6a4754 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 28 Sep 2021 16:39:02 +0000 Subject: [PATCH] 1 --- server/gameserver/human.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index d63367d3..96fb29f4 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -3734,8 +3734,10 @@ void Human::DoFollow(int target_id) !(hum->follow_target.Get()->HasBuffEffect(kBET_Fly) || hum->follow_target.Get()->HasBuffEffect(kBET_Jump)) ){ - hum->moving = false; - hum->moved_frames = 0; + if (hum->IsPlayer()) { + hum->AsPlayer()->moving = false; + hum->AsPlayer()->moved_frames = 0; + } hum->follow_target.Detach(); hum->room->xtimer.DeleteTimer(hum->room->xtimer.GetRunningTimer()); return;