summaryrefslogtreecommitdiff
path: root/src/JSystem/J2DGraph/J2DPicture.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2024-10-17 21:35:18 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2024-10-17 21:35:18 -0400
commit34afbd84db8d66dd634fa19e94a737d40dfe7995 (patch)
treefb950a75f3928b8283874b277a9ab9baf1345392 /src/JSystem/J2DGraph/J2DPicture.cpp
parentf1d73f7fc721e957303d4e6541ec165c3ad9aea5 (diff)
clangd: Started fixing warnings and errors, code cleanup
Diffstat (limited to 'src/JSystem/J2DGraph/J2DPicture.cpp')
-rw-r--r--src/JSystem/J2DGraph/J2DPicture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/JSystem/J2DGraph/J2DPicture.cpp b/src/JSystem/J2DGraph/J2DPicture.cpp
index d9c86016..66a55c4d 100644
--- a/src/JSystem/J2DGraph/J2DPicture.cpp
+++ b/src/JSystem/J2DGraph/J2DPicture.cpp
@@ -197,7 +197,7 @@ bool J2DPicture::remove(u8 idx) {
mBlendKonstColorF[i] = mBlendKonstColorF[i + 1];
mBlendKonstAlphaF[i] = mBlendKonstAlphaF[i + 1];
}
- mValidTexture = mValidTexture & (1 << idx) - 1 | ((mValidTexture & ~((1 << idx + 1) - 1)) >> 1);
+ mValidTexture = mValidTexture & (1 << idx) - 1 | ((mValidTexture & ~((1 << (idx + 1)) - 1)) >> 1);
mNumTexture--;
setBlendKonstColor();
setBlendKonstAlpha();