mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
Changed Common::Array::resize() to default init new array elements
svn-id: r40430
This commit is contained in:
parent
c7e5cc2935
commit
36818ced2a
@ -209,6 +209,8 @@ public:
|
||||
|
||||
void resize(uint newSize) {
|
||||
reserve(newSize);
|
||||
for (uint i = _size; i < newSize; ++i)
|
||||
_storage[i] = T();
|
||||
_size = newSize;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user