mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-02 13:11:33 +00:00
Consider first set element as first acquired
This commit is contained in:
parent
f2ebad5115
commit
0c6d72b2d1
1 changed files with 2 additions and 3 deletions
|
@ -74,10 +74,9 @@ namespace DetourNavigator
|
||||||
}
|
}
|
||||||
|
|
||||||
iterator->mNavMeshData = std::move(value);
|
iterator->mNavMeshData = std::move(value);
|
||||||
|
++iterator->mUseCount;
|
||||||
mUsedNavMeshDataSize += itemSize;
|
mUsedNavMeshDataSize += itemSize;
|
||||||
mFreeNavMeshDataSize += itemSize;
|
mBusyItems.splice(mBusyItems.end(), mFreeItems, iterator);
|
||||||
|
|
||||||
acquireItemUnsafe(iterator);
|
|
||||||
|
|
||||||
return Value(*this, iterator);
|
return Value(*this, iterator);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue