mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +00:00
COMMON: Set _capacity to just _size in Common::Array::operator=
This commit is contained in:
parent
2f79090e46
commit
85d5eec950
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user