From 3dabba456bda99d88fe069f2e5c5e2cc3d02288e Mon Sep 17 00:00:00 2001 From: Nemurimasu Neiro Date: Thu, 2 Sep 2010 03:34:17 +0000 Subject: "fix" null sound channel crash --- linden/indra/llaudio/audioengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linden/indra/llaudio/audioengine.cpp b/linden/indra/llaudio/audioengine.cpp index 728f054..1900c38 100644 --- a/linden/indra/llaudio/audioengine.cpp +++ b/linden/indra/llaudio/audioengine.cpp @@ -762,7 +762,7 @@ LLAudioChannel * LLAudioEngine::getFreeChannel(const F32 priority) { LLAudioChannel *channelp = mChannels[i]; LLAudioSource *sourcep = channelp->getSource(); - if (sourcep->getPriority() < min_priority) + if (sourcep && sourcep->getPriority() < min_priority) { min_channelp = channelp; min_priority = sourcep->getPriority(); -- cgit v1.1