From 89cc0b93916d227ad80616e211c3daf7ac60d8c7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 5 Jun 2004 01:56:51 +0000 Subject: [PATCH] fix crash remove unneeded include --- stepmania/src/RageSoundManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index ca2a202e83..b1558dbe48 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -11,7 +11,6 @@ #include "arch/arch.h" #include "arch/Sound/RageSoundDriver.h" -#include "SDL_audio.h" #if defined(WIN32) set g_ProtectedPages; @@ -335,12 +334,13 @@ void RageSoundManager::GetCopies( RageSound &snd, vector &snds, boo g_DeletionMutex.Lock(); g_SoundManMutex.Lock(); /* lock for access to all_sounds */ - const all_sounds_type sounds = all_sounds; + set sounds; + sounds.insert( all_sounds.begin(), all_sounds.end() ); g_SoundManMutex.Unlock(); /* finished with all_sounds */ RageSound *parent = snd.GetOriginal(); - all_sounds_type::const_iterator it; + set::const_iterator it; for( it = sounds.begin(); it != sounds.end(); ++it ) { CHECKPOINT_M( ssprintf("%p %p", *it, parent) );