fix crash
remove unneeded include
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
#include "arch/arch.h"
|
#include "arch/arch.h"
|
||||||
#include "arch/Sound/RageSoundDriver.h"
|
#include "arch/Sound/RageSoundDriver.h"
|
||||||
#include "SDL_audio.h"
|
|
||||||
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
set<void *> g_ProtectedPages;
|
set<void *> g_ProtectedPages;
|
||||||
@@ -335,12 +334,13 @@ void RageSoundManager::GetCopies( RageSound &snd, vector<RageSound *> &snds, boo
|
|||||||
g_DeletionMutex.Lock();
|
g_DeletionMutex.Lock();
|
||||||
|
|
||||||
g_SoundManMutex.Lock(); /* lock for access to all_sounds */
|
g_SoundManMutex.Lock(); /* lock for access to all_sounds */
|
||||||
const all_sounds_type sounds = all_sounds;
|
set<RageSound *> sounds;
|
||||||
|
sounds.insert( all_sounds.begin(), all_sounds.end() );
|
||||||
g_SoundManMutex.Unlock(); /* finished with all_sounds */
|
g_SoundManMutex.Unlock(); /* finished with all_sounds */
|
||||||
|
|
||||||
RageSound *parent = snd.GetOriginal();
|
RageSound *parent = snd.GetOriginal();
|
||||||
|
|
||||||
all_sounds_type::const_iterator it;
|
set<RageSound *>::const_iterator it;
|
||||||
for( it = sounds.begin(); it != sounds.end(); ++it )
|
for( it = sounds.begin(); it != sounds.end(); ++it )
|
||||||
{
|
{
|
||||||
CHECKPOINT_M( ssprintf("%p %p", *it, parent) );
|
CHECKPOINT_M( ssprintf("%p %p", *it, parent) );
|
||||||
|
|||||||
Reference in New Issue
Block a user