mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-02 23:19:40 +00:00
Remove useless variable
This commit is contained in:
parent
1a95b7a154
commit
66e5a4d591
1 changed files with 1 additions and 3 deletions
|
@ -200,8 +200,6 @@ bool MWMechanics::AiPackage::pathTo(const MWWorld::Ptr& actor, const osg::Vec3f&
|
|||
|
||||
void MWMechanics::AiPackage::evadeObstacles(const MWWorld::Ptr& actor)
|
||||
{
|
||||
MWMechanics::Movement& movement = actor.getClass().getMovementSettings(actor);
|
||||
|
||||
// check if stuck due to obstacles
|
||||
if (!mObstacleCheck.isEvading()) return;
|
||||
|
||||
|
@ -215,7 +213,7 @@ void MWMechanics::AiPackage::evadeObstacles(const MWWorld::Ptr& actor)
|
|||
}
|
||||
else
|
||||
{
|
||||
mObstacleCheck.takeEvasiveAction(movement);
|
||||
mObstacleCheck.takeEvasiveAction(actor.getClass().getMovementSettings(actor));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue