diff --git a/title/arm9/source/graphics/graphics.cpp b/title/arm9/source/graphics/graphics.cpp index 3f72a4f55e..464aa3ff72 100644 --- a/title/arm9/source/graphics/graphics.cpp +++ b/title/arm9/source/graphics/graphics.cpp @@ -193,7 +193,7 @@ void LoadBMP(void) { break; } } - for (c2 = 0; c2 < colorsCached; c2++) { + for (c2 = 0; c2 < colorsCached2; c2++) { if (prevColor2[c2] == color2) { cachedColorFound2 = true; break; diff --git a/title/arm9/source/twlmenuppvideo.cpp b/title/arm9/source/twlmenuppvideo.cpp index 0536df6e19..7fa19c5fa3 100644 --- a/title/arm9/source/twlmenuppvideo.cpp +++ b/title/arm9/source/twlmenuppvideo.cpp @@ -770,7 +770,7 @@ void twlMenuVideo(void) { break; } } - for (c2 = 0; c2 < colorsCached; c2++) { + for (c2 = 0; c2 < colorsCached2; c2++) { if (prevColor2[c2] == color2) { cachedColorFound2 = true; break;