mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-23 19:20:56 +00:00
Fix variables hiding
This commit is contained in:
parent
41318a585f
commit
107a9ecb17
@ -82,7 +82,7 @@ namespace MWClass
|
||||
|
||||
const Creature::GMST& Creature::getGmst()
|
||||
{
|
||||
static const GMST gmst = []
|
||||
static const GMST staticGmst = []
|
||||
{
|
||||
GMST gmst;
|
||||
|
||||
@ -105,7 +105,7 @@ namespace MWClass
|
||||
|
||||
return gmst;
|
||||
} ();
|
||||
return gmst;
|
||||
return staticGmst;
|
||||
}
|
||||
|
||||
void Creature::ensureCustomData (const MWWorld::Ptr& ptr) const
|
||||
|
@ -266,7 +266,7 @@ namespace MWClass
|
||||
|
||||
const Npc::GMST& Npc::getGmst()
|
||||
{
|
||||
static const GMST gmst = []
|
||||
static const GMST staticGmst = []
|
||||
{
|
||||
GMST gmst;
|
||||
|
||||
@ -296,7 +296,7 @@ namespace MWClass
|
||||
|
||||
return gmst;
|
||||
} ();
|
||||
return gmst;
|
||||
return staticGmst;
|
||||
}
|
||||
|
||||
void Npc::ensureCustomData (const MWWorld::Ptr& ptr) const
|
||||
|
@ -526,10 +526,10 @@ namespace MWPhysics
|
||||
|
||||
void PhysicsSystem::updatePtr(const MWWorld::Ptr &old, const MWWorld::Ptr &updated)
|
||||
{
|
||||
if (auto found = mObjects.find(old.mRef); found != mObjects.end())
|
||||
found->second->updatePtr(updated);
|
||||
else if (auto found = mActors.find(old.mRef); found != mActors.end())
|
||||
found->second->updatePtr(updated);
|
||||
if (auto foundObject = mObjects.find(old.mRef); foundObject != mObjects.end())
|
||||
foundObject->second->updatePtr(updated);
|
||||
else if (auto foundActor = mActors.find(old.mRef); foundActor != mActors.end())
|
||||
foundActor->second->updatePtr(updated);
|
||||
|
||||
for (auto& [_, actor] : mActors)
|
||||
{
|
||||
|
@ -69,8 +69,8 @@ namespace DetourNavigator
|
||||
if (const btCollisionShape* const avoidShape = shapes.mShapeInstance->getAvoidCollisionShape())
|
||||
{
|
||||
const ObjectId avoidId(avoidShape);
|
||||
const CollisionShape collisionShape {shapes.mShapeInstance, *avoidShape};
|
||||
if (mNavMeshManager.updateObject(avoidId, collisionShape, transform, AreaType_null))
|
||||
const CollisionShape avoidCollisionShape {shapes.mShapeInstance, *avoidShape};
|
||||
if (mNavMeshManager.updateObject(avoidId, avoidCollisionShape, transform, AreaType_null))
|
||||
{
|
||||
updateAvoidShapeId(id, avoidId);
|
||||
result = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user