mirror of https://github.com/mgba-emu/mgba.git
GBA Hardware: Fix e-Reader crash on reset (fixes #1675)
This commit is contained in:
parent
6055c4e8db
commit
774a292384
|
@ -168,6 +168,7 @@ void GBAHardwareClear(struct GBACartridgeHardware* hw) {
|
||||||
|
|
||||||
if (hw->eReaderDots) {
|
if (hw->eReaderDots) {
|
||||||
mappedMemoryFree(hw->eReaderDots, EREADER_DOTCODE_SIZE);
|
mappedMemoryFree(hw->eReaderDots, EREADER_DOTCODE_SIZE);
|
||||||
|
hw->eReaderDots = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hw->p->sio.drivers.normal == &hw->gbpDriver.d) {
|
if (hw->p->sio.drivers.normal == &hw->gbpDriver.d) {
|
||||||
|
|
Loading…
Reference in New Issue