From eaa9b6c57b93da722be1d3a77986986c4093bb56 Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Mon, 25 Feb 2019 09:42:46 +0800 Subject: [PATCH] Map Viewer: Fix crash when running a gb/gbc game, ...caused by invalid start address of mapbase. Fix https://github.com/visualboyadvance-m/visualboyadvance-m/issues/372 --- src/wx/gfxviewers.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wx/gfxviewers.cpp b/src/wx/gfxviewers.cpp index acea2487..a90280be 100644 --- a/src/wx/gfxviewers.cpp +++ b/src/wx/gfxviewers.cpp @@ -565,6 +565,8 @@ public: GBMapViewer() : GfxViewer(wxT("GBMapViewer"), 256, 256) { + charbase = 0x0000; + mapbase = 0x1800; getradio(, "CharBase0", charbase, 0x0000); getradio(, "CharBase1", charbase, 0x0800); getradio(, "MapBase0", mapbase, 0x1800);