From 0865eb576277e99cd2b1f3d1ac399eebb5d00086 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 15 Sep 2008 03:06:50 +0000 Subject: [PATCH] source deletion fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2609 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index dae8c95d..5b22f981 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -406,7 +406,7 @@ struct sourcescheduler if(!src) return; src->unlock(); - if(sources.length() >= soundchannels) + if(sources.length() > soundchannels) { sources.removeobj(src); delete src;