From a0d2d660bf20315f5f1aa8ffc2f12fa75069f9bf Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 28 Feb 2016 17:41:29 +0100 Subject: [PATCH] fixed issue noticed for racedrivpan (nw) --- src/emu/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();