fix crash when printing to non-existent osd

This commit is contained in:
vadosnaprimer 2019-03-25 18:34:29 +03:00
parent 40bf609a2c
commit 042afbaec5
1 changed files with 1 additions and 1 deletions

View File

@ -2776,7 +2776,7 @@ static void RefreshMicSettings()
{ {
MessageBox(NULL, "Unable to read the mic sample", "DeSmuME", (MB_OK | MB_ICONEXCLAMATION)); MessageBox(NULL, "Unable to read the mic sample", "DeSmuME", (MB_OK | MB_ICONEXCLAMATION));
} }
else else if (osd)
{ {
osd->addLine("Mic sample %d selected", MicSampleSelection); osd->addLine("Mic sample %d selected", MicSampleSelection);
} }