diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index d63367d..96fb29f 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;