From 19d86ab448c390ae2087f57e2f34479da5b89e99 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 18 Sep 2008 18:59:21 +0000 Subject: [PATCH] set sbuffer id to 0 after unload git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2696 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 41ef98fb..27ebf865 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -906,6 +906,7 @@ struct sbuffer if(!id) return; alclearerr(); if(alIsBuffer(id)) alDeleteBuffers(1, &id); + id = 0; alerr(); } };