ChunkFile: Don't access element zero of empty container

This was causing assertion failures in debug MSVC builds.
This commit is contained in:
Stenzek 2019-02-10 13:26:46 +10:00
parent e030a48741
commit cecefa2d97

View File

@ -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>