From b89d2e0ef10d3a732c8a6a74346c67e02d62440a Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 25 Jan 2023 15:21:30 -0500 Subject: [PATCH] Fix potential warning in music.c I saw this included in PR966, but it has nothing to do with the use-after-free that the pull request is meant to fix. It should get applied independently of that pull request. --- src/music.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/music.c b/src/music.c index 8c21c6f3e..99bc653f4 100644 --- a/src/music.c +++ b/src/music.c @@ -886,6 +886,8 @@ obj_to_instr(struct obj *obj) { ret_instr = ins_melodic_tom; break; } +#else + nhUse(obj); #endif return ret_instr; }