mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-27 05:43:51 +01:00
Fix anonymous struct
This commit is contained in:
parent
9848f84b9e
commit
eeb329909c
@ -36,6 +36,13 @@
|
|||||||
|
|
||||||
// Static type declarations
|
// Static type declarations
|
||||||
|
|
||||||
|
struct FlagControlledFlyDest
|
||||||
|
{
|
||||||
|
const u8 *const *name;
|
||||||
|
u16 mapSecId;
|
||||||
|
u16 flag;
|
||||||
|
};
|
||||||
|
|
||||||
// Static RAM declarations
|
// Static RAM declarations
|
||||||
|
|
||||||
static EWRAM_DATA struct RegionMap *gRegionMap = NULL;
|
static EWRAM_DATA struct RegionMap *gRegionMap = NULL;
|
||||||
@ -319,17 +326,13 @@ static const u8 *const gUnknown_085A1ED4[] =
|
|||||||
gText_PokemonCenter
|
gText_PokemonCenter
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct
|
static const struct FlagControlledFlyDest gUnknown_085A1EDC[] =
|
||||||
{
|
{
|
||||||
const u8 *const *name;
|
{
|
||||||
u16 mapSecId;
|
.name = gUnknown_085A1ED4,
|
||||||
u16 flag;
|
.mapSecId = MAPSEC_EVER_GRANDE_CITY,
|
||||||
}
|
.flag = FLAG_LANDMARK_POKEMON_LEAGUE
|
||||||
gUnknown_085A1EDC[] =
|
}
|
||||||
{
|
|
||||||
gUnknown_085A1ED4,
|
|
||||||
MAPSEC_EVER_GRANDE_CITY,
|
|
||||||
FLAG_LANDMARK_POKEMON_LEAGUE
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct BgTemplate gUnknown_085A1EE4[] =
|
static const struct BgTemplate gUnknown_085A1EE4[] =
|
||||||
@ -1774,7 +1777,7 @@ static void sub_8124904(void)
|
|||||||
if (sFlyMap->regionMap.iconDrawType > MAPSECTYPE_NONE && sFlyMap->regionMap.iconDrawType <= MAPSECTYPE_BATTLE_FRONTIER)
|
if (sFlyMap->regionMap.iconDrawType > MAPSECTYPE_NONE && sFlyMap->regionMap.iconDrawType <= MAPSECTYPE_BATTLE_FRONTIER)
|
||||||
{
|
{
|
||||||
flag = FALSE;
|
flag = FALSE;
|
||||||
for (i = 0; i < 1; i++)
|
for (i = 0; i < ARRAY_COUNT(gUnknown_085A1EDC); i++)
|
||||||
{
|
{
|
||||||
if (sFlyMap->regionMap.mapSecId == gUnknown_085A1EDC[i].mapSecId)
|
if (sFlyMap->regionMap.mapSecId == gUnknown_085A1EDC[i].mapSecId)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user