timekpr.c: Not assert in case there is no default data defined (fixes CD-i based hardware games) (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2010-07-08 14:32:53 +00:00
parent 018a21fa53
commit 10b0e0236e

View File

@ -310,7 +310,8 @@ static DEVICE_START(timekeeper)
c->data = auto_alloc_array( device->machine, UINT8, c->size );
c->default_data = *device->region();
assert( device->region()->bytes() == c->size );
if (c->default_data)
assert( device->region()->bytes() == c->size );
state_save_register_device_item( device, 0, c->control );
state_save_register_device_item( device, 0, c->seconds );