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

c++11
scrawl 10 years ago
parent 675884ba30
commit 98a77f68a3

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

Loading…
Cancel
Save