* Fix bad soundbuffer release check in the SoundSystemWindows

This commit is contained in:
iProgramInCpp
2023-08-09 23:12:07 +03:00
parent 529100f168
commit c445c255a3

View File

@@ -147,6 +147,7 @@ void SoundSystemWindows::playAt(const SoundDesc& sound, float x, float y, float
if (status != DSBSTATUS_PLAYING) {
m_buffers[i]->Release();
m_buffers.erase(m_buffers.begin() + i);
i--;
}
}