Fix bad loop condition that shows up with -cheat enabled.

This commit is contained in:
Aaron Giles 2010-07-08 04:48:25 +00:00
parent 4df35a02d9
commit 0910f8038a

View File

@ -1646,7 +1646,7 @@ static slider_state *slider_init(running_machine *machine)
if (options_get_bool(machine->options(), OPTION_CHEAT)) if (options_get_bool(machine->options(), OPTION_CHEAT))
{ {
device_execute_interface *exec = NULL; device_execute_interface *exec = NULL;
for (bool gotone = machine->m_devicelist.first(exec); exec != NULL; gotone = exec->next(exec)) for (bool gotone = machine->m_devicelist.first(exec); gotone; gotone = exec->next(exec))
{ {
void *param = (void *)&exec->device(); void *param = (void *)&exec->device();
string.printf("Overclock CPU %s", exec->device().tag()); string.printf("Overclock CPU %s", exec->device().tag());