TIMER: Fix sim_timer_is_active for internal timer unit

This commit is contained in:
Mark Pizzolato 2017-01-05 10:44:49 -08:00
parent b935a173e5
commit f698a215b4

View file

@ -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]);
}