From 4e034f3f14b67370008a7785df0b39aaa8d06ed3 Mon Sep 17 00:00:00 2001 From: AreaZeroArven <122058867+AreaZeroArven@users.noreply.github.com> Date: Wed, 18 Oct 2023 19:50:02 -0400 Subject: [PATCH] ALIGNED(2) The boxTitleTiles in storage This bug was found by removing unused fields, only to find the graphics were corrupted because CpuCopy16 expects an aligned-2 pointer. --- src/pokemon_storage_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon_storage_system.c b/src/pokemon_storage_system.c index 574e6ba51e91..d28a3f3c7006 100644 --- a/src/pokemon_storage_system.c +++ b/src/pokemon_storage_system.c @@ -431,7 +431,7 @@ struct PokemonStorageSystemData u16 scrollUnused5; // Never read u16 scrollUnused6; // Never read u8 filler1[22]; - u8 boxTitleTiles[1024]; + ALIGNED(2) u8 boxTitleTiles[1024]; u8 boxTitleCycleId; u8 wallpaperLoadState; // Written to, but never read. u8 wallpaperLoadBoxId;