diff options
| author | 2009-03-27 13:35:38 +0000 | |
|---|---|---|
| committer | 2009-03-27 13:35:38 +0000 | |
| commit | 9549910dbc2469491f402c6e49721229cdfd4d75 (patch) | |
| tree | 00f25e5623ee839c0c2675ce3714d9bf2908f0fc /src/emu/cheat.c | |
| parent | 31bdfa77a0bbf86af89cd41547c56cbce9ae4edc (diff) | |
Sent: Saturday, March 21, 2009 3:27 PM
To: submit@mamedev.org
Subject: Simple cheat fix
Attached a very simple fix for a very stupid cut and paste error in my original submission..sorry.
Martin 'Pugsy' Pugh
Diffstat (limited to 'src/emu/cheat.c')
| -rw-r--r-- | src/emu/cheat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/cheat.c b/src/emu/cheat.c index 322bcbec824..c317afa79cb 100644 --- a/src/emu/cheat.c +++ b/src/emu/cheat.c @@ -500,7 +500,8 @@ void *cheat_get_next_menu_entry(running_machine *machine, void *previous, const { if (cheat->state == SCRIPT_STATE_OFF) { - *state = is_oneshot_parameter_cheat(cheat) ? "Set" : "Off"; + if (state != NULL) + *state = is_oneshot_parameter_cheat(cheat) ? "Set" : "Off"; if (flags != NULL) *flags = MENU_FLAG_RIGHT_ARROW; } |
