mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue