mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
added assert for sc4milro segmentation fault (nw)
This commit is contained in:
parent
ce5bea7821
commit
2393d5ddca
@ -162,6 +162,7 @@ void m68307_timer::write_ter(UINT16 data, UINT16 mem_mask, int which)
|
|||||||
void m68307_timer::write_tmr(UINT16 data, UINT16 mem_mask, int which)
|
void m68307_timer::write_tmr(UINT16 data, UINT16 mem_mask, int which)
|
||||||
{
|
{
|
||||||
m68307cpu_device* m68k = parent;
|
m68307cpu_device* m68k = parent;
|
||||||
|
assert(which >= 0 && which < ARRAY_LENGTH(singletimer));
|
||||||
m68307_single_timer* tptr = &singletimer[which];
|
m68307_single_timer* tptr = &singletimer[which];
|
||||||
|
|
||||||
COMBINE_DATA(&tptr->regs[m68307TIMER_TMR]);
|
COMBINE_DATA(&tptr->regs[m68307TIMER_TMR]);
|
||||||
|
Loading…
Reference in New Issue
Block a user