Update sound_openal.cpp

This commit is contained in:
Ian Giestas Pauli 2017-01-31 13:25:17 -02:00 committed by GitHub
parent e42b8626af
commit a354c558d4
1 changed files with 1 additions and 0 deletions

View File

@ -511,6 +511,7 @@ public:
{
ALint state;
alGetSourcei(sound->source_id, AL_SOURCE_STATE, &state);
if(state != AL_PLAYING && state != AL_PAUSED) {
del_list.insert(id);
}