From 6c111aaed556ab7c33a1df7670a360e4665a2ca6 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 20 Jan 2023 05:19:06 -0500 Subject: [PATCH] guard call --- src/insight.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insight.c b/src/insight.c index 5d2c715f8..27d491aaf 100644 --- a/src/insight.c +++ b/src/insight.c @@ -2337,7 +2337,8 @@ record_achievement(schar achidx) * theme music or something. We do let the sound interface know * that it's not the original achievement though. */ - (*soundprocs.sound_achievement)(achidx, 0, repeat_achievement); + if (soundprocs.sound_achievement) + (*soundprocs.sound_achievement)(achidx, 0, repeat_achievement); if (repeat_achievement) return; /* already recorded, don't duplicate it */ -- 2.50.0