summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index 052ed19..6d8786e 100644
--- a/menu.c
+++ b/menu.c
@@ -301,6 +301,9 @@ void * menu_write_w(uint32_t address, void * context, uint16_t value)
char *gstpath = alloc_concat_m(3, parts);
uint32_t pc = load_gst(gen->next_context, gstpath);
free(gstpath);
+ if (!pc) {
+ break;
+ }
gen->next_context->m68k->resume_pc = get_native_address_trans(gen->next_context->m68k, pc);
}
m68k->should_return = 1;