Bugfix for access violation in MapPreview_CreateMapNameWindow

This commit is contained in:
PikalaxALT
2020-07-10 19:41:44 -04:00
committed by GitHub
parent 0816046a73
commit 7b2d1082cc
+5
View File
@@ -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));