summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/image.cpp')
-rw-r--r--src/emu/image.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/image.cpp b/src/emu/image.cpp
index 8d2ccfb5824..cd7329b13ef 100644
--- a/src/emu/image.cpp
+++ b/src/emu/image.cpp
@@ -206,8 +206,9 @@ void image_manager::options_extract()
image_opt = image.filename();
}
- // and set the option
- machine().options().image_option(image.instance_name()).specify(std::move(image_opt));
+ // and set the option (provided that it hasn't been removed out from under us)
+ if (machine().options().exists(image.instance_name()))
+ machine().options().image_option(image.instance_name()).specify(std::move(image_opt));
}
}