mirror of https://github.com/bsnes-emu/bsnes.git
Fix #402
This commit is contained in:
parent
51be70275d
commit
84c5f8b92d
|
@ -412,6 +412,7 @@ int GB_load_gbs_from_buffer(GB_gameboy_t *gb, const uint8_t *buffer, size_t size
|
|||
if (gb->mbc_ram) {
|
||||
free(gb->mbc_ram);
|
||||
gb->mbc_ram = NULL;
|
||||
gb->mbc_ram_size = 0;
|
||||
}
|
||||
|
||||
if (gb->cartridge_type->has_ram) {
|
||||
|
|
|
@ -141,6 +141,7 @@ void GB_configure_cart(GB_gameboy_t *gb)
|
|||
if (gb->mbc_ram) {
|
||||
free(gb->mbc_ram);
|
||||
gb->mbc_ram = NULL;
|
||||
gb->mbc_ram_size = 0;
|
||||
}
|
||||
|
||||
if (gb->cartridge_type->has_ram) {
|
||||
|
|
Loading…
Reference in New Issue