mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 19:39:42 +00:00
Reset path after AiTravel is fast forwarded
Otherwise actor will keep going to the first path point that may be unreachable.
This commit is contained in:
parent
1fdc5151ca
commit
4ad04a28f9
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ namespace MWMechanics
|
||||||
// that is the user's responsibility
|
// that is the user's responsibility
|
||||||
MWBase::Environment::get().getWorld()->moveObject(actor, mX, mY, mZ);
|
MWBase::Environment::get().getWorld()->moveObject(actor, mX, mY, mZ);
|
||||||
actor.getClass().adjustPosition(actor, false);
|
actor.getClass().adjustPosition(actor, false);
|
||||||
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AiTravel::writeState(ESM::AiSequence::AiSequence &sequence) const
|
void AiTravel::writeState(ESM::AiSequence::AiSequence &sequence) const
|
||||||
|
|
Loading…
Reference in a new issue