diff --git a/src/debugger.c b/src/debugger.c index 380d013..bb7026c 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -531,7 +531,7 @@ void dbg_onsleep(void) { } void dbg_on_palette_change(void) { - if (dbg_impl) + if (dbg_impl && dbg_impl->on_palette_change) dbg_impl->on_palette_change(); }