mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-26 08:04:19 +01:00
Validate if entries are not empty before using
Should fix saving problem in Baldur's Gate: Dark Alliance II at least
This commit is contained in:
parent
5f510d84d7
commit
bbd34ae7e7
@ -28,6 +28,7 @@ namespace skyline::service::fssrv {
|
||||
auto outputEntries{request.outputBuf.at(0).cast<DirectoryEntry, std::dynamic_extent, true>()};
|
||||
size_t i{};
|
||||
|
||||
if (!entries.empty())
|
||||
for (; i < std::min(entries.size() - remainingReadCount, outputEntries.size()); i++) {
|
||||
auto &entry{entries.at(i)};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user