Spacegun regression.

This commit is contained in:
Aaron Giles 2008-11-18 07:10:51 +00:00
parent 84897712e6
commit 7df8f23199

View File

@ -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;
}