summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-06-20 13:47:57 -0700
committerPokechu22 <Pokechu022@gmail.com>2021-12-18 12:51:56 -0800
commit1914087998bc296208355dc4b1b2553430b081b2 (patch)
treebae5ecbd974582819f38c01fbff2aa762a812761 /Source/Core/VideoCommon/OpcodeDecoding.cpp
parent3aaeb2b9ef3f6b9cde69c77ecdf96e8defc996d5 (diff)
Create and use CPArray enum class
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp
index 362afd6a7a..be879ddfbc 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.cpp
+++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp
@@ -166,12 +166,12 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list)
// GX_LOAD_INDX_B (40) -> 0xD
// GX_LOAD_INDX_C (48) -> 0xE
// GX_LOAD_INDX_D (56) -> 0xF
- const int ref_array = (cmd_byte / 8) + 8;
+ const auto array = static_cast<CPArray>((cmd_byte / 8) + 8);
if constexpr (is_preprocess)
- PreprocessIndexedXF(src.Read<u32>(), ref_array);
+ PreprocessIndexedXF(array, src.Read<u32>());
else
- LoadIndexedXF(src.Read<u32>(), ref_array);
+ LoadIndexedXF(array, src.Read<u32>());
}
break;