Fix order of evaluation making imgui debugger not fail on starting without driver selected (nw)

This commit is contained in:
Miodrag Milanovic 2016-07-22 14:05:51 +02:00
parent b2ebca6189
commit d6179859ad

View File

@ -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();