Skip to content
Snippets Groups Projects
Commit 643bbdae authored by David Parks's avatar David Parks
Browse files

Tweak LLDynamicArrayIndexed to not abuse its std::vector.

parent ea6397fe
No related branches found
No related tags found
No related merge requests found
...@@ -202,7 +202,7 @@ class LLDynamicArrayIndexed ...@@ -202,7 +202,7 @@ class LLDynamicArrayIndexed
{ {
U32 n = mVector.size(); U32 n = mVector.size();
mIndexMap[k] = n; mIndexMap[k] = n;
mVector.resize(n+1); mVector.push_back(Type());
llassert(mVector.size() == mIndexMap.size()); llassert(mVector.size() == mIndexMap.size());
return mVector[n]; return mVector[n];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment