mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-15 16:50:01 -05:00
Merge pull request #347 from pret/map-preview-bugfix
Bugfix for access violation in MapPreview_CreateMapNameWindow
This commit is contained in:
commit
ea10b25fb1
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user