mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
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:
committed by
Rafael Kitover
parent
91ee8cad9c
commit
eaa9b6c57b
@@ -565,6 +565,8 @@ public:
|
|||||||
GBMapViewer()
|
GBMapViewer()
|
||||||
: GfxViewer(wxT("GBMapViewer"), 256, 256)
|
: GfxViewer(wxT("GBMapViewer"), 256, 256)
|
||||||
{
|
{
|
||||||
|
charbase = 0x0000;
|
||||||
|
mapbase = 0x1800;
|
||||||
getradio(, "CharBase0", charbase, 0x0000);
|
getradio(, "CharBase0", charbase, 0x0000);
|
||||||
getradio(, "CharBase1", charbase, 0x0800);
|
getradio(, "CharBase1", charbase, 0x0800);
|
||||||
getradio(, "MapBase0", mapbase, 0x1800);
|
getradio(, "MapBase0", mapbase, 0x1800);
|
||||||
|
Reference in New Issue
Block a user