Skip to content
Permalink
Browse files

ChunkFile: Don't access element zero of empty container

This was causing assertion failures in debug MSVC builds.
  • Loading branch information...
stenzek committed Feb 10, 2019
1 parent e030a48 commit cecefa2d97c953e9a3cd6094f2dcc43fcef491fe
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/Core/Common/ChunkFile.h
@@ -262,7 +262,8 @@ class PointerWrap
Do(size);
container.resize(size);

DoArray(&container[0], size);
if (size > 0)
DoArray(&container[0], size);
}

template <typename T>

0 comments on commit cecefa2

Please sign in to comment.
You can’t perform that action at this time.