Tiny crash fix for the wiimote plugin as well as a safer check for the volume in DSP HLE

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3314 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
sl1nk3.s
2009-06-03 20:09:48 +00:00
parent 16a9e33b85
commit 69055f8d42
3 changed files with 4 additions and 2 deletions

View File

@ -160,7 +160,7 @@ void DSound::SetVolume(int volume)
m_volume = (int)floor(log10((float)volume) * 5000.0f) - 10000;
soundCriticalSection.Enter();
if (ds != NULL)
if (dsBuffer != NULL)
dsBuffer->SetVolume(m_volume);
soundCriticalSection.Leave();
}