summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeVerifier.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2019-07-14 13:15:53 +0200
committerJosJuice <josjuice@gmail.com>2019-07-21 09:37:06 +0200
commit4ee73dbad35aa17de48787711a2e118d04558867 (patch)
tree92bfc24381f6faf20e01a31f2a0d408d1bd5efac /Source/Core/DiscIO/VolumeVerifier.cpp
parentda1fbbc5d5d0eda5fcdccadd20207b4b525f8a7e (diff)
IOS: Put common key handles in an array
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp
index 55da0d27c6..22a732a8ab 100644
--- a/Source/Core/DiscIO/VolumeVerifier.cpp
+++ b/Source/Core/DiscIO/VolumeVerifier.cpp
@@ -609,7 +609,7 @@ void VolumeVerifier::CheckMisc()
{
const u8 common_key = ticket.GetCommonKeyIndex();
- if (common_key > 1)
+ if (common_key > IOS::HLE::IOSC::COMMON_KEY_HANDLES.size())
{
// Many fakesigned WADs have the common key index set to a (random?) bogus value.
// For WADs, Dolphin will detect this and use common key 0 instead, making this low severity.