summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-03-05 10:48:25 -0600
committerDave Parks <davep@lindenlab.com>2010-03-05 10:48:25 -0600
commitf6b16271b5c2b957bcd945287b718d5457c68fcd (patch)
tree05b9c6540a8f9bab52ece7865372ccc0907b64f1
parenteb5b0f2542c16aaac2283d4050a4cc2a3c6691f8 (diff)
Tweak LLDynamicArrayIndexed to not abuse its std::vector.
-rw-r--r--indra/llcommon/lldarray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/lldarray.h b/indra/llcommon/lldarray.h
index 0e56a11d53..af647c7e7a 100644
--- a/indra/llcommon/lldarray.h
+++ b/indra/llcommon/lldarray.h
@@ -202,7 +202,7 @@ public:
{
U32 n = mVector.size();
mIndexMap[k] = n;
- mVector.resize(n+1);
+ mVector.push_back(Type());
llassert(mVector.size() == mIndexMap.size());
return mVector[n];
}