diff options
| author | JosJuice <josjuice@gmail.com> | 2015-09-19 09:23:52 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2015-09-19 09:23:52 +0200 |
| commit | e2e7fc9029eeb4cb0c6393b1234072627b11aff9 (patch) | |
| tree | a5fca658d3651b9f3e9192e452a1fbf5cbd403a3 /Source/Core/DolphinWX/ISOFile.cpp | |
| parent | 3f564809038bfb6679f319de81457b0d5677524a (diff) | |
Fix 4.0-7767 regression: exception when handling short WAD IDs
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/ISOFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index 28051d0fb0..82cd73fba5 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -139,8 +139,8 @@ GameListItem::GameListItem(const std::string& _rFileName, const std::unordered_m std::string game_id = m_UniqueID; // Ignore publisher ID for WAD files - if (m_Platform == DiscIO::IVolume::WII_WAD) - game_id.erase(game_id.size() - 2); + if (m_Platform == DiscIO::IVolume::WII_WAD && game_id.size() > 4) + game_id.erase(4); auto end = custom_titles.end(); auto it = custom_titles.find(game_id); |
