From 042afbaec5141f7735007b59135f426312a4ad13 Mon Sep 17 00:00:00 2001 From: vadosnaprimer Date: Mon, 25 Mar 2019 18:34:29 +0300 Subject: [PATCH] fix crash when printing to non-existent osd --- desmume/src/windows/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 08af507b1..6edfa2f47 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -2776,7 +2776,7 @@ static void RefreshMicSettings() { MessageBox(NULL, "Unable to read the mic sample", "DeSmuME", (MB_OK | MB_ICONEXCLAMATION)); } - else + else if (osd) { osd->addLine("Mic sample %d selected", MicSampleSelection); }