From 5a375b92362961135c10d46c46676dcd2e35764f Mon Sep 17 00:00:00 2001 From: PokeCodec <67983839+PokeCodec@users.noreply.github.com> Date: Wed, 2 Sep 2020 13:40:22 -0400 Subject: [PATCH] Fix error --- src/pokedex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pokedex.c b/src/pokedex.c index 94f090891..606642221 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; } }