mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-23 19:11:33 +00:00
Merge branch 'lifetime' into 'master'
Maybe fix #6071 Closes #6071 See merge request OpenMW/openmw!1010 (cherry picked from commit6475082095
)1650dabe
Assign the return value of weak_ptr::lock() to a variable, so that the
This commit is contained in:
parent
8530bc5cf5
commit
d1c0cfa524
1 changed files with 1 additions and 1 deletions
|
@ -599,7 +599,7 @@ namespace MWPhysics
|
|||
if (!mRemainingSteps)
|
||||
return;
|
||||
for (auto& data : mActorsFrameData)
|
||||
if (data.mActor.lock())
|
||||
if (const auto actor = data.mActor.lock())
|
||||
{
|
||||
std::unique_lock lock(mCollisionWorldMutex);
|
||||
MovementSolver::unstuck(data, mCollisionWorld);
|
||||
|
|
Loading…
Reference in a new issue