summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-07-08 04:48:25 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-07-08 04:48:25 +0000
commit0910f8038a1abf7d80007a24604aba1127477ea2 (patch)
treeea5399788ab776f88d491660c350e1111dd0fe21 /src/emu/ui.c
parent4df35a02d99ab2f0ee16d90fda312b188eebe620 (diff)
Fix bad loop condition that shows up with -cheat enabled.
Diffstat (limited to 'src/emu/ui.c')
-rw-r--r--src/emu/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/ui.c b/src/emu/ui.c
index 0176af8c468..28b73481c77 100644
--- a/src/emu/ui.c
+++ b/src/emu/ui.c
@@ -1646,7 +1646,7 @@ static slider_state *slider_init(running_machine *machine)
if (options_get_bool(machine->options(), OPTION_CHEAT))
{
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();
string.printf("Overclock CPU %s", exec->device().tag());