mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
ChunkFile: Don't access element zero of empty container
This was causing assertion failures in debug MSVC builds.
This commit is contained in:
parent
e030a48741
commit
cecefa2d97
@ -262,7 +262,8 @@ private:
|
||||
Do(size);
|
||||
container.resize(size);
|
||||
|
||||
DoArray(&container[0], size);
|
||||
if (size > 0)
|
||||
DoArray(&container[0], size);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
Loading…
Reference in New Issue
Block a user