mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-03 05:49:04 +03:00
* Fix bad soundbuffer release check in the SoundSystemWindows
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user