mirror of
https://github.com/holub/mame
synced 2025-05-07 14:54:35 +03:00
Fix crash in tilemap viewer when driver has no tilemaps (no whatsnew)
This commit is contained in:
parent
06c1f8edbf
commit
b1293d18ac
@ -980,6 +980,9 @@ int tilemap_count(running_machine *machine)
|
||||
tilemap *tmap;
|
||||
int count = 0;
|
||||
|
||||
if (machine->tilemap_data == NULL)
|
||||
return 0;
|
||||
|
||||
/* find by the tilemap index */
|
||||
for (tmap = machine->tilemap_data->list; tmap != NULL; tmap = tmap->next)
|
||||
count++;
|
||||
|
Loading…
Reference in New Issue
Block a user