mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 08:23:53 +00:00
Remove useless variables
This commit is contained in:
parent
8dab6e0f6c
commit
518e34b403
1 changed files with 2 additions and 2 deletions
|
@ -338,7 +338,7 @@ namespace MWWorld
|
|||
{
|
||||
if (const auto object = mPhysics->getObject(ptr))
|
||||
navigator->removeObject(DetourNavigator::ObjectId(object));
|
||||
else if (const auto actor = mPhysics->getActor(ptr))
|
||||
else if (mPhysics->getActor(ptr))
|
||||
{
|
||||
navigator->removeAgent(world->getPathfindingHalfExtents(ptr));
|
||||
mRendering.removeActorPath(ptr);
|
||||
|
@ -809,7 +809,7 @@ namespace MWWorld
|
|||
const auto player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||
navigator->update(player.getRefData().getPosition().asVec3());
|
||||
}
|
||||
else if (const auto actor = mPhysics->getActor(ptr))
|
||||
else if (mPhysics->getActor(ptr))
|
||||
{
|
||||
navigator->removeAgent(MWBase::Environment::get().getWorld()->getPathfindingHalfExtents(ptr));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue