summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authormajestic <majesticcoding@gmail.com>2020-06-05 23:31:17 +0200
committermajestic <majesticcoding@gmail.com>2020-06-05 23:31:17 +0200
commitf014b29fc46f498b42bf94b2d94333a4989e4917 (patch)
treedad0a58aa86f359fabbee09ec471f77527d87bd9 /src/core/Pad.cpp
parentUpdate Pad.cpp (diff)
downloadre3-f014b29fc46f498b42bf94b2d94333a4989e4917.tar
re3-f014b29fc46f498b42bf94b2d94333a4989e4917.tar.gz
re3-f014b29fc46f498b42bf94b2d94333a4989e4917.tar.bz2
re3-f014b29fc46f498b42bf94b2d94333a4989e4917.tar.lz
re3-f014b29fc46f498b42bf94b2d94333a4989e4917.tar.xz
re3-f014b29fc46f498b42bf94b2d94333a4989e4917.tar.zst
re3-f014b29fc46f498b42bf94b2d94333a4989e4917.zip
Diffstat (limited to '')
-rw-r--r--src/core/Pad.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 2f9db15b..a475bf7b 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -984,7 +984,7 @@ int Cheat_strncmp(char* sourceStr, char* origCheatStr)
char cheatCodeVals[] = { 3,5,7,1,13,27,3,7,1,11,13,8,7,32,13,6,28,19,10,3,3,5,7,1,13,27,3,7 };
for (int32 i = 0; i < strlen(origCheatStr); i++) {
- if ((sourceStr[i] != origCheatStr[i] - cheatCodeVals[i]) || i >= 28) {
+ if ((sourceStr[i] != origCheatStr[i] - cheatCodeVals[i]) || i >= ARRAY_SIZE(cheatCodeVals)) {
return 1;
}
}