mirror of
https://github.com/holub/mame
synced 2025-05-21 21:29:15 +03:00
Spacegun regression.
This commit is contained in:
parent
84897712e6
commit
7df8f23199
@ -581,9 +581,10 @@ static int has_write_handler(int cpunum, write16_space_func handler)
|
||||
{
|
||||
const address_map *map = memory_get_address_map(cpunum, ADDRESS_SPACE_PROGRAM);
|
||||
const address_map_entry *entry;
|
||||
for (entry = map->entrylist; entry != NULL; entry = entry->next)
|
||||
if (entry->write.shandler16 == handler)
|
||||
return 1;
|
||||
if (map != NULL)
|
||||
for (entry = map->entrylist; entry != NULL; entry = entry->next)
|
||||
if (entry->write.shandler16 == handler)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user