mirror of https://github.com/mgba-emu/mgba.git
GB MBC: Fix crash with NT Old 2 if rumble callback isn't installed
This commit is contained in:
parent
e79ae2860b
commit
a064306916
|
@ -227,7 +227,7 @@ void _GBNTOld2(struct GB* gb, uint16_t address, uint8_t value) {
|
|||
mbcState->rumble = !!(value & 0x80);
|
||||
}
|
||||
|
||||
if (mbcState->rumble) {
|
||||
if (mbcState->rumble && memory->rumble) {
|
||||
memory->rumble->setRumble(memory->rumble, !!(mbcState->swapped ? value & 0x08 : value & 0x02));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue