mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Don't reject re-loading an unused bank [O. Galibert]
This commit is contained in:
parent
36817177d1
commit
09cf67b3b1
@ -2063,6 +2063,9 @@ void memory_bank::set_base(void *base)
|
||||
|
||||
void memory_bank::set_entry(int entrynum)
|
||||
{
|
||||
if(entrynum == -1 && m_entries.empty())
|
||||
return;
|
||||
|
||||
// validate
|
||||
if (entrynum < 0 || entrynum >= int(m_entries.size()))
|
||||
throw emu_fatalerror("memory_bank::set_entry called with out-of-range entry %d", entrynum);
|
||||
|
Loading…
Reference in New Issue
Block a user