diff --git a/src/pokedex.c b/src/pokedex.c index 94f0908913..6066422211 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -5248,12 +5248,12 @@ void SetSearchRectHighlight(u8 flags, u8 x, u8 y, u8 width) temp &= 0xFFF; temp |= (flags << 12); - *(u16 *)(ptr + (y*64 + (x + i)*2) = temp; + *(u16 *)(ptr + (y*64 + (x + i)*2)) = temp; temp = *(u16 *)(ptr + (y + 1)*64 + (x + i)*2); temp &= 0xFFF; temp |= (flags << 12); - *(u16 *)(ptr + (y + 1)*64 + (x + i)*2) = temp; + *(u16 *)(ptr + (y + 1)*64 + (x + i)*2)) = temp; } }