Consider first set element as first acquired

pull/593/head
elsid 4 years ago
parent f2ebad5115
commit 0c6d72b2d1
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -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…
Cancel
Save