Update overworld map accessors

This commit is contained in:
scawful
2023-11-26 16:50:09 -05:00
parent 85549e4a36
commit d2fa9c0c53
3 changed files with 14 additions and 4 deletions

View File

@@ -348,7 +348,7 @@ void OverworldMap::LoadPalette() {
int previousSprPalId =
index_ > 0 ? rom_[overworldSpritePalette + parent_ - 1] : 0;
area_palette_ = std::min(area_palette_, 0xA3);
area_palette_ = std::min((int)area_palette_, 0xA3);
uchar pal0 = 0;
uchar pal1 = rom_[rom_.version_constants().overworldMapPaletteGroup +