This commit is contained in:
aozhiwei 2024-02-15 12:38:34 +08:00
parent d8f71de4c5
commit 2cffb5332a

View File

@ -10,6 +10,7 @@
#include "creature.h"
#include "human.h"
#include "stats.h"
#include "car.h"
#include "mt/Map.h"
@ -193,6 +194,9 @@ void Movement::ClearPath()
is_find_path_ = false;
path_index_ = 0;
paths_.clear();
if (owner_->IsCar() && owner_->AsCar()->GetDriver()) {
owner_->AsCar()->GetDriver()->GetMovement()->ClearPath();
}
}
size_t Movement::GetPathSize()