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
This commit is contained in:
retro-wertz 2019-02-25 09:42:46 +08:00 committed by Rafael Kitover
parent 91ee8cad9c
commit eaa9b6c57b
1 changed files with 2 additions and 0 deletions

View File

@ -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);