source deletion fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2609 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-15 03:06:50 +00:00
parent c4e2d6ac0d
commit 0865eb5762
+1 -1
View File
@@ -406,7 +406,7 @@ struct sourcescheduler
if(!src) return;
src->unlock();
if(sources.length() >= soundchannels)
if(sources.length() > soundchannels)
{
sources.removeobj(src);
delete src;