Skip to content

Commit

Permalink
Map Viewer: Fix crash when running a gb/gbc game,
Browse files Browse the repository at this point in the history
...caused by invalid start address of mapbase.

Fix #372
  • Loading branch information
retro-wertz authored and rkitover committed Feb 25, 2019
1 parent 91ee8ca commit eaa9b6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wx/gfxviewers.cpp
Expand Up @@ -565,6 +565,8 @@ class GBMapViewer : public GfxViewer {
GBMapViewer()
: GfxViewer(wxT("GBMapViewer"), 256, 256)
{
charbase = 0x0000;
mapbase = 0x1800;
getradio(, "CharBase0", charbase, 0x0000);
getradio(, "CharBase1", charbase, 0x0800);
getradio(, "MapBase0", mapbase, 0x1800);
Expand Down

0 comments on commit eaa9b6c

Please sign in to comment.