Merge pull request #7797 from stenzek/chunkfile
ChunkFile: Don't access element zero of empty container
This commit is contained in:
commit
3a36f738cf
|
@ -262,7 +262,8 @@ private:
|
||||||
Do(size);
|
Do(size);
|
||||||
container.resize(size);
|
container.resize(size);
|
||||||
|
|
||||||
DoArray(&container[0], size);
|
if (size > 0)
|
||||||
|
DoArray(&container[0], size);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
Loading…
Reference in New Issue