summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-07-10 19:41:44 -0400
committerGitHub <noreply@github.com>2020-07-10 19:41:44 -0400
commit7b2d1082cc697b640723f5a029013f5d2d74d64e (patch)
tree5268660b0cde88204952ba667c8e89db41a46332 /src
parent0816046a73902d513d45a6bc7ab5986384411b5b (diff)
Bugfix for access violation in MapPreview_CreateMapNameWindow
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));