summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-07-22 14:05:51 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-07-23 11:26:09 +0200
commitd6179859ad5809ce484b3695b508c075d9dca57b (patch)
tree0203e8061776fc50b977cfe794622871667f9fb7
parentb2ebca6189349f976c93371b692b6c76a20cb47c (diff)
Fix order of evaluation making imgui debugger not fail on starting without driver selected (nw)
-rw-r--r--src/osd/modules/debugger/debugimgui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp
index 0c4f16919f9..ebdf06bbe12 100644
--- a/src/osd/modules/debugger/debugimgui.cpp
+++ b/src/osd/modules/debugger/debugimgui.cpp
@@ -1177,7 +1177,7 @@ void debug_imgui::wait_for_debugger(device_t &device, bool firststop)
void debug_imgui::debugger_update()
{
- if ((m_machine != nullptr) && (!m_machine->debugger().cpu().is_stopped()) && (m_machine->phase() == MACHINE_PHASE_RUNNING) && !m_hide)
+ if (m_machine && (m_machine->phase() == MACHINE_PHASE_RUNNING) && !m_machine->debugger().cpu().is_stopped() && !m_hide)
{
UINT32 width = m_machine->render().ui_target().width();
UINT32 height = m_machine->render().ui_target().height();