diff --git a/Source/Core/Common/ChunkFile.h b/Source/Core/Common/ChunkFile.h index b4383d2570..aef3a2ec4a 100644 --- a/Source/Core/Common/ChunkFile.h +++ b/Source/Core/Common/ChunkFile.h @@ -262,7 +262,8 @@ private: Do(size); container.resize(size); - DoArray(&container[0], size); + if (size > 0) + DoArray(&container[0], size); } template