diff options
author | Nemurimasu Neiro | 2010-09-02 03:34:17 +0000 |
---|---|---|
committer | McCabe Maxsted | 2010-09-17 03:19:43 -0700 |
commit | 3dabba456bda99d88fe069f2e5c5e2cc3d02288e (patch) | |
tree | 1d77e0773d661366de4cc981ac7949db4440e77b | |
parent | Made searching contacts suck a lot less (diff) | |
download | meta-impy-3dabba456bda99d88fe069f2e5c5e2cc3d02288e.zip meta-impy-3dabba456bda99d88fe069f2e5c5e2cc3d02288e.tar.gz meta-impy-3dabba456bda99d88fe069f2e5c5e2cc3d02288e.tar.bz2 meta-impy-3dabba456bda99d88fe069f2e5c5e2cc3d02288e.tar.xz |
"fix" null sound channel crash
-rw-r--r-- | linden/indra/llaudio/audioengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
762 | { | 762 | { |
763 | LLAudioChannel *channelp = mChannels[i]; | 763 | LLAudioChannel *channelp = mChannels[i]; |
764 | LLAudioSource *sourcep = channelp->getSource(); | 764 | LLAudioSource *sourcep = channelp->getSource(); |
765 | if (sourcep->getPriority() < min_priority) | 765 | if (sourcep && sourcep->getPriority() < min_priority) |
766 | { | 766 | { |
767 | min_channelp = channelp; | 767 | min_channelp = channelp; |
768 | min_priority = sourcep->getPriority(); | 768 | min_priority = sourcep->getPriority(); |