mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
TIMER: Fix sim_timer_is_active for internal timer unit
This commit is contained in:
@@ -2575,7 +2575,7 @@ int32 tmr;
|
||||
|
||||
if (!(uptr->dynflags & UNIT_TMR_UNIT))
|
||||
return FALSE;
|
||||
for (tmr=0; tmr<SIM_NTIMERS; tmr++) {
|
||||
for (tmr=0; tmr<=SIM_NTIMERS; tmr++) {
|
||||
if (sim_clock_unit[tmr] == uptr)
|
||||
return sim_is_active (&sim_timer_units[tmr]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user