1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Fix AiWander::fastForward using incorrect pathgrid coordinates when actor recently moved to a new cell

This commit is contained in:
scrawl 2015-06-15 20:04:36 +02:00
parent 675884ba30
commit 98a77f68a3

View File

@ -669,6 +669,9 @@ namespace MWMechanics
MWBase::Environment::get().getWorld()->moveObject(actor, static_cast<float>(dest.mX),
static_cast<float>(dest.mY), static_cast<float>(dest.mZ));
actor.getClass().adjustPosition(actor, false);
// may have changed cell
mStoredAvailableNodes = false;
}
void AiWander::getAllowedNodes(const MWWorld::Ptr& actor, const ESM::Cell* cell)