Skip to content

Commit 34165b2

Browse files
authored
fix(CRAM): Fix operator precedence bug for 64-color palettes
Fix by sftwninja
2 parents 68d32cd + 63bcb44 commit 34165b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saturnringlib/srl_cram.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ namespace SRL
241241
break;
242242

243243
case CRAM::TextureColorMode::Paletted64:
244-
for (int32_t id = 0; id < 32 && freeBank < 0; (((uint8_t*)CRAM::AllocationMask)[id >> 1] & (id % 2 == 0 ? 0x0f : 0xf0) == 0) ? freeBank = id : id++);
244+
for (int32_t id = 0; id < 32 && freeBank < 0; ((((uint8_t*)CRAM::AllocationMask)[id >> 1] & (id % 2 == 0 ? 0x0f : 0xf0)) == 0) ? freeBank = id : id++);
245245
break;
246246

247247
case CRAM::TextureColorMode::Paletted16:

0 commit comments

Comments
 (0)