diff --git a/common/array.h b/common/array.h index bf7aca4154f..704254f6921 100644 --- a/common/array.h +++ b/common/array.h @@ -209,6 +209,8 @@ public: void resize(uint newSize) { reserve(newSize); + for (uint i = _size; i < newSize; ++i) + _storage[i] = T(); _size = newSize; }