Audio/Sound: Fix crash when destroying moved Sound

This commit is contained in:
SirLynix 2022-12-24 11:55:27 +01:00
parent fd29d8d031
commit 22ae68fdca
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ namespace Nz
*/ */
Sound::~Sound() Sound::~Sound()
{ {
Stop(); if (m_source)
Stop();
} }
/*! /*!