Fix crash in SGSoundMgr::stop(): do not try to erase buffer items one at a time

This commit is contained in:
ehofman
2009-12-09 09:38:07 +00:00
committed by Tim Moore
parent b1200f9f59
commit f3c591469b

View File

@@ -209,7 +209,6 @@ void SGSoundMgr::stop() {
refUint ref = buffers_current->second;
ALuint buffer = ref.id;
alDeleteBuffers(1, &buffer);
_buffers.erase( buffers_current );
}
_buffers.clear();