mirror of
https://github.com/holub/mame
synced 2025-05-10 00:01:52 +03:00
Fixed NULL pointer dereference in tilemap_set_flip_all() when game has no tilemaps (no whatsnew)
This commit is contained in:
parent
c3fb047204
commit
123f4decc7
@ -476,6 +476,10 @@ void tilemap_set_flip(tilemap *tmap, UINT32 attributes)
|
||||
void tilemap_set_flip_all(running_machine *machine, UINT32 attributes)
|
||||
{
|
||||
tilemap *tmap;
|
||||
|
||||
if (machine->tilemap_data == NULL)
|
||||
return;
|
||||
|
||||
for (tmap = machine->tilemap_data->list; tmap != NULL; tmap = tmap->next)
|
||||
tilemap_set_flip(tmap, attributes);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user