fix overworld allocation on smart pointers

This commit is contained in:
Justin Scofield
2022-07-05 22:21:30 -04:00
parent d75169317b
commit fe4b3ca84f
2 changed files with 7 additions and 4 deletions

View File

@@ -29,6 +29,10 @@ void Overworld::Load(app::rom::ROM& rom, uchar* allGfxPtr) {
rom_ = rom;
allGfx16Ptr = allGfxPtr;
overworldMapPointer = std::make_shared<uchar[]>(0x40000);
mapblockset16 = std::make_shared<uchar[]>(1048576);
currentOWgfx16Ptr = std::make_shared<uchar[]>((128 * 512) / 2);
AssembleMap32Tiles();
AssembleMap16Tiles();
DecompressAllMapTiles();