summaryrefslogtreecommitdiff
path: root/src/pokedex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pokedex.c')
-rw-r--r--src/pokedex.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pokedex.c b/src/pokedex.c
index 98fa40dbf..eba97beb7 100644
--- a/src/pokedex.c
+++ b/src/pokedex.c
@@ -148,8 +148,6 @@ struct SearchMenuItem
u8 selectionBgWidth;
};
-extern struct MusicPlayerInfo gMPlayInfo_BGM;
-
struct PokedexListItem
{
u16 dexNum;
@@ -1637,7 +1635,7 @@ void CB2_OpenPokedex(void)
SetVBlankCallback(VBlankCB_Pokedex);
SetMainCallback2(CB2_Pokedex);
CreatePokedexList(sPokedexView->dexMode, sPokedexView->dexOrder);
- m4aMPlayVolumeControl(&gMPlayInfo_BGM, 0xFFFF, 0x80);
+ m4aMPlayVolumeControl(&gMPlayInfo_BGM, TRACKS_ALL, 0x80);
break;
}
}
@@ -1847,7 +1845,7 @@ static void Task_ClosePokedex(u8 taskId)
FreeWindowAndBgBuffers();
DestroyTask(taskId);
SetMainCallback2(CB2_ReturnToFieldWithOpenMenu);
- m4aMPlayVolumeControl(&gMPlayInfo_BGM, 0xFFFF, 0x100);
+ m4aMPlayVolumeControl(&gMPlayInfo_BGM, TRACKS_ALL, 0x100);
Free(sPokedexView);
}
}