fallback on default BW popup theme to reduce potential for error (#5392)

This commit is contained in:
RavePossum 2024-09-18 10:57:13 -04:00 committed by GitHub
parent 95dac7c4ac
commit 27db57f854
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -625,7 +625,7 @@ static void LoadMapNamePopUpWindowBg(void)
switch (popUpThemeId)
{
// add additional gen 5-style pop-up themes as cases here
case MAPPOPUP_THEME_BW_DEFAULT:
default: // MAPPOPUP_THEME_BW_DEFAULT
if (OW_POPUP_BW_COLOR == OW_POPUP_BW_COLOR_WHITE)
LoadPalette(sMapPopUpTilesPalette_BW_White, BG_PLTT_ID(14), sizeof(sMapPopUpTilesPalette_BW_White));
else