Merge pull request #347 from pret/map-preview-bugfix

Bugfix for access violation in MapPreview_CreateMapNameWindow
This commit is contained in:
PikalaxALT 2020-07-10 19:55:18 -04:00 committed by GitHub
commit ea10b25fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));