summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/cheat.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-06-12 17:52:45 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-06-12 17:52:45 +0200
commit24a91a55fd1ecb55491ade29c69935381583914a (patch)
treeff2ea1142f44b7dbc6374fae507fefa0986d286b /src/frontend/mame/cheat.cpp
parent65ab6469653f4624b7d54a67cc510fd2a185bfad (diff)
Fix crashing where cheat enabled (nw)
Diffstat (limited to 'src/frontend/mame/cheat.cpp')
-rw-r--r--src/frontend/mame/cheat.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frontend/mame/cheat.cpp b/src/frontend/mame/cheat.cpp
index 0a9bedbb44a..1e2167f9176 100644
--- a/src/frontend/mame/cheat.cpp
+++ b/src/frontend/mame/cheat.cpp
@@ -1078,10 +1078,12 @@ cheat_manager::cheat_manager(running_machine &machine)
// we rely on the debugger expression callbacks; if the debugger isn't
// enabled, we must jumpstart them manually
if ((machine.debug_flags & DEBUG_FLAG_ENABLED) == 0)
+ {
m_cpu = std::make_unique<debugger_cpu>(machine);
- // configure for memory access (shared with debugger)
- m_cpu->configure_memory(m_symtable);
+ // configure for memory access (shared with debugger)
+ m_cpu->configure_memory(m_symtable);
+ }
// load the cheats
reload();