This commit is contained in:
aozhiwei 2022-12-28 13:59:37 +08:00
parent 6aebffe95b
commit 9ed987c69e
2 changed files with 2 additions and 1 deletions

View File

@ -3191,7 +3191,7 @@ void Creature::UpdateMove()
void Creature::ForwardMove(float distance) void Creature::ForwardMove(float distance)
{ {
GetMovement()->CalcTargetPos(distance);
} }
bool Creature::HasSpecMove() bool Creature::HasSpecMove()

View File

@ -183,6 +183,7 @@ void Movement::CalcTargetPos(float distance)
void Movement::ClearPath() void Movement::ClearPath()
{ {
is_find_path_ = false;
path_index_ = 0; path_index_ = 0;
paths_.clear(); paths_.clear();
} }