From 6349f161eb7094e8047f8d8a81a64dcc8c45c945 Mon Sep 17 00:00:00 2001 From: LTVA1 <87536432+LTVA1@users.noreply.github.com> Date: Fri, 9 Aug 2024 15:13:16 +0300 Subject: [PATCH] sigh 5 --- src/engine/platform/sid3.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/platform/sid3.cpp b/src/engine/platform/sid3.cpp index 81fd40a21..bdeedcb8c 100644 --- a/src/engine/platform/sid3.cpp +++ b/src/engine/platform/sid3.cpp @@ -585,6 +585,7 @@ int DivPlatformSID3::dispatch(DivCommand c) { if (c.chan>SID3_NUM_CHANNELS - 1) return 0; bool updEnv = false; + DivInstrument* ins=parent->getIns(chan[c.chan].ins,DIV_INS_SID3); switch (c.cmd) { case DIV_CMD_NOTE_ON: { @@ -803,8 +804,6 @@ int DivPlatformSID3::dispatch(DivCommand c) { return SID3_MAX_VOL; break; case DIV_CMD_WAVE: - DivInstrument* ins=parent->getIns(chan[c.chan].ins,DIV_INS_SID3); - if(c.chan == SID3_NUM_CHANNELS - 1 && ins->sid3.doWavetable) { chan[c.chan].wavetable = c.value & 0xff;