summaryrefslogtreecommitdiff
path: root/indra/llcommon/lldarray.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/lldarray.h')
-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 af647c7e7a..0e56a11d53 100644
--- a/indra/llcommon/lldarray.h
+++ b/indra/llcommon/lldarray.h
@@ -202,7 +202,7 @@ public:
{
U32 n = mVector.size();
mIndexMap[k] = n;
- mVector.push_back(Type());
+ mVector.resize(n+1);
llassert(mVector.size() == mIndexMap.size());
return mVector[n];
}