From 30b549124e8c01c550b2c4b520c3f15d6e40189b Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 14 Aug 2016 16:42:29 +0200 Subject: [PATCH] Fix use-after-free --- apps/openmw/mwmechanics/aiwander.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/openmw/mwmechanics/aiwander.cpp b/apps/openmw/mwmechanics/aiwander.cpp index 7afbedb12..1ec9444aa 100644 --- a/apps/openmw/mwmechanics/aiwander.cpp +++ b/apps/openmw/mwmechanics/aiwander.cpp @@ -803,9 +803,6 @@ namespace MWMechanics MWBase::Environment::get().getWorld()->moveObject(actor, static_cast(dest.mX), static_cast(dest.mY), static_cast(dest.mZ)); actor.getClass().adjustPosition(actor, false); - - // may have changed cell - storage.mPopulateAvailableNodes = true; } int AiWander::OffsetToPreventOvercrowding()