From 2895e338c0112d24d1ea7563ee787eb68a6e473e Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sun, 18 Feb 2024 08:36:15 +0900 Subject: [PATCH] Fix a crash in command-line debugger --- src/debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }