summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map_preview_screen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map_preview_screen.c b/src/map_preview_screen.c
index 91f2c64c9..7666decd3 100644
--- a/src/map_preview_screen.c
+++ b/src/map_preview_screen.c
@@ -443,7 +443,12 @@ u16 MapPreview_CreateMapNameWindow(u8 mapsec)
{
u16 windowId;
u32 xctr;
+ #ifdef BUGFIX
+ // Fixes access violations indicated below.
+ u8 color[3];
+ #else
u8 color[0];
+ #endif
windowId = AddWindow(&sMapNameWindow);
FillWindowPixelBuffer(windowId, PIXEL_FILL(1));