Refactor DungeonEditor to use std::array for gfx sheets

This commit is contained in:
scawful
2024-08-13 21:57:00 -04:00
parent 4aabb3d0b4
commit b9622c880c
2 changed files with 3 additions and 4 deletions

View File

@@ -109,7 +109,7 @@ absl::Status DungeonEditor::Initialize() {
ASSIGN_OR_RETURN(current_palette_group_,
gfx::CreatePaletteGroupFromLargePalette(full_palette_));
graphics_bin_ = *rom()->mutable_bitmap_manager();
graphics_bin_ = rom()->gfx_sheets();
// Create a vector of pointers to the current block bitmaps
for (int block : rooms_[current_room_id_].blocks()) {
room_gfx_sheets_.emplace_back(&graphics_bin_[block]);