diff --git a/src/engine/platform/scc.cpp b/src/engine/platform/scc.cpp index f23240e1..87a42afe 100644 --- a/src/engine/platform/scc.cpp +++ b/src/engine/platform/scc.cpp @@ -379,11 +379,7 @@ void DivPlatformSCC::quit() { delete oscBuf[i]; } if (scc!=NULL) { - if (isPlus) { - delete (k052539_scc_core*)scc; - } else { - delete (k051649_scc_core*)scc; - } + delete scc; } } diff --git a/src/engine/platform/sound/scc/scc.hpp b/src/engine/platform/sound/scc/scc.hpp index a4580bad..e696c403 100644 --- a/src/engine/platform/sound/scc/scc.hpp +++ b/src/engine/platform/sound/scc/scc.hpp @@ -41,6 +41,7 @@ public: scc_core() : m_voice{*this,*this,*this,*this,*this} {}; + virtual ~scc_core(){}; // accessors virtual u8 scc_r(bool is_sccplus, u8 address) = 0;