diff options
author | Vladimir | 2011-06-07 01:00:09 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:30:43 +0200 |
commit | e4c9ae7a5452e52d9ae064af293a5f12d5a06bab (patch) | |
tree | e7b681defc99fc1f405d464543e9232351d1bc90 /common | |
parent | a0e56d9cad9148ae2c6fb5d616bc15c47de79e77 (diff) | |
download | scummvm-rg350-e4c9ae7a5452e52d9ae064af293a5f12d5a06bab.tar.gz scummvm-rg350-e4c9ae7a5452e52d9ae064af293a5f12d5a06bab.tar.bz2 scummvm-rg350-e4c9ae7a5452e52d9ae064af293a5f12d5a06bab.zip |
COMMON: fixed resize
Diffstat (limited to 'common')
-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 b3d3e01727..ff32d3d94c 100644 --- a/common/array.h +++ b/common/array.h @@ -253,7 +253,7 @@ public: } void assign(const T *srcBegin, const T *srcEnd) { - reserve(distance(srcBegin, srcEnd)); + resize(distance(srcBegin, srcEnd)); //fixme: ineffective? T *dst = _storage; while(srcBegin != srcEnd) *dst++ = *srcBegin++; |