diff --git a/src/emu/device.h b/src/emu/device.h index 2b807d58d94..6ef1abacf3b 100644 --- a/src/emu/device.h +++ b/src/emu/device.h @@ -389,7 +389,7 @@ public: } // search next for neighbors up the ownership chain - while (m_curdepth > 0) + while (m_curdepth > 0 && start != nullptr) { // found a neighbor? great! m_current = start->next();