From 24a91a55fd1ecb55491ade29c69935381583914a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 12 Jun 2016 17:52:45 +0200 Subject: [PATCH] Fix crashing where cheat enabled (nw) --- src/frontend/mame/cheat.cpp | 6 ++++-- 1 file 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(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();