summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/schedule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/schedule.c')
-rw-r--r--src/emu/schedule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/schedule.c b/src/emu/schedule.c
index 614ed8bdacb..741ae074896 100644
--- a/src/emu/schedule.c
+++ b/src/emu/schedule.c
@@ -788,8 +788,8 @@ void device_scheduler::rebuild_execute_list()
device_execute_interface **suspend_tailptr = &suspend_list;
// iterate over all devices
- device_execute_interface *exec = NULL;
- for (bool gotone = machine().devicelist().first(exec); gotone; gotone = exec->next(exec))
+ execute_interface_iterator iter(machine().root_device());
+ for (device_execute_interface *exec = iter.first(); exec != NULL; exec = iter.next())
{
// append to the appropriate list
exec->m_nextexec = NULL;