summaryrefslogtreecommitdiffstats
path: root/src/emu/rendlay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/rendlay.cpp')
-rw-r--r--src/emu/rendlay.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/emu/rendlay.cpp b/src/emu/rendlay.cpp
index 50882d0d214..a71857175e1 100644
--- a/src/emu/rendlay.cpp
+++ b/src/emu/rendlay.cpp
@@ -5064,9 +5064,12 @@ layout_file::layout_file(
}
// load the content of the first script node
- util::xml::data_node const *const scriptnode = mamelayoutnode->get_child("script");
- if (scriptnode)
- emulator_info::layout_script_cb(*this, scriptnode->get_value());
+ if (!m_viewlist.empty())
+ {
+ util::xml::data_node const *const scriptnode = mamelayoutnode->get_child("script");
+ if (scriptnode)
+ emulator_info::layout_script_cb(*this, scriptnode->get_value());
+ }
}
catch (layout_syntax_error const &err)
{