1
0
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:
elsid 2019-08-01 15:10:46 +02:00
parent 1fdc5151ca
commit 4ad04a28f9
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -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