mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-17 16:36:33 -04: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
|
// 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…
x
Reference in New Issue
Block a user