Merge pull request #347 from pret/map-preview-bugfix
Bugfix for access violation in MapPreview_CreateMapNameWindow
This commit is contained in:
@@ -443,7 +443,12 @@ u16 MapPreview_CreateMapNameWindow(u8 mapsec)
|
|||||||
{
|
{
|
||||||
u16 windowId;
|
u16 windowId;
|
||||||
u32 xctr;
|
u32 xctr;
|
||||||
|
#ifdef BUGFIX
|
||||||
|
// Fixes access violations indicated below.
|
||||||
|
u8 color[3];
|
||||||
|
#else
|
||||||
u8 color[0];
|
u8 color[0];
|
||||||
|
#endif
|
||||||
|
|
||||||
windowId = AddWindow(&sMapNameWindow);
|
windowId = AddWindow(&sMapNameWindow);
|
||||||
FillWindowPixelBuffer(windowId, PIXEL_FILL(1));
|
FillWindowPixelBuffer(windowId, PIXEL_FILL(1));
|
||||||
|
|||||||
Reference in New Issue
Block a user