diff options
author | Max Horn | 2011-05-16 13:50:06 +0200 |
---|---|---|
committer | Max Horn | 2011-05-16 13:50:06 +0200 |
commit | 85d5eec95056f438bca709a0d3998885fb81e774 (patch) | |
tree | 16cfc1a8ac2cc4b14af89adc3158be7962035de7 | |
parent | 2f79090e46582bb41e036c19f06456a966436927 (diff) | |
download | scummvm-rg350-85d5eec95056f438bca709a0d3998885fb81e774.tar.gz scummvm-rg350-85d5eec95056f438bca709a0d3998885fb81e774.tar.bz2 scummvm-rg350-85d5eec95056f438bca709a0d3998885fb81e774.zip |
COMMON: Set _capacity to just _size in Common::Array::operator=
-rw-r--r-- | common/array.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/array.h b/common/array.h index 9b94709f1d..6f8e7da579 100644 --- a/common/array.h +++ b/common/array.h @@ -179,7 +179,7 @@ public: delete[] _storage; _size = array._size; - _capacity = _size + 32; + _capacity = _size; _storage = new T[_capacity]; assert(_storage); copy(array._storage, array._storage + _size, _storage); |