mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +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
@ -88,6 +88,7 @@ namespace MWMechanics
|
||||
// that is the user's responsibility
|
||||
MWBase::Environment::get().getWorld()->moveObject(actor, mX, mY, mZ);
|
||||
actor.getClass().adjustPosition(actor, false);
|
||||
reset();
|
||||
}
|
||||
|
||||
void AiTravel::writeState(ESM::AiSequence::AiSequence &sequence) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user