diff options
Diffstat (limited to 'src/emu/profiler.c')
-rw-r--r-- | src/emu/profiler.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/profiler.c b/src/emu/profiler.c index c4c6e49a4e1..71b8735c052 100644 --- a/src/emu/profiler.c +++ b/src/emu/profiler.c @@ -233,6 +233,7 @@ const char *real_profiler_state::text(running_machine &machine, astring &string) } // loop over all types and generate the string + device_iterator iter(machine.root_device()); for (curtype = PROFILER_DEVICE_FIRST; curtype < PROFILER_TOTAL; curtype++) { // determine the accumulated time for this type @@ -252,7 +253,7 @@ const char *real_profiler_state::text(running_machine &machine, astring &string) // and then the text if (curtype >= PROFILER_DEVICE_FIRST && curtype <= PROFILER_DEVICE_MAX) - string.catprintf("'%s'", machine.devicelist().find(curtype - PROFILER_DEVICE_FIRST)->tag()); + string.catprintf("'%s'", iter.byindex(curtype - PROFILER_DEVICE_FIRST)->tag()); else for (int nameindex = 0; nameindex < ARRAY_LENGTH(names); nameindex++) if (names[nameindex].type == curtype) |