Remove wrong reserve call. Fixes new crash reported in #15932

This commit is contained in:
Henrik Rydgård 2024-01-02 11:10:23 +01:00
parent cd8b79ff59
commit 2193dcafc3

View File

@ -651,7 +651,6 @@ std::vector<PSPFileInfo> ISOFileSystem::GetDirListing(const std::string &path, b
const std::string dot(".");
const std::string dotdot("..");
myVector.reserve(entry->children.size() - 2);
for (size_t i = 0; i < entry->children.size(); i++) {
TreeEntry *e = entry->children[i];