aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llaudio/audioengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llaudio/audioengine.cpp')
-rw-r--r--linden/indra/llaudio/audioengine.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/linden/indra/llaudio/audioengine.cpp b/linden/indra/llaudio/audioengine.cpp
index 05636c1..af43b42 100644
--- a/linden/indra/llaudio/audioengine.cpp
+++ b/linden/indra/llaudio/audioengine.cpp
@@ -1621,16 +1621,14 @@ LLAudioData::LLAudioData(const LLUUID &uuid) :
1621 // This is a null sound. 1621 // This is a null sound.
1622 return; 1622 return;
1623 } 1623 }
1624 llassert_always(gAudiop) ; 1624
1625 llassert_always(gAssetStorage) ; 1625 if (gAudiop && gAudiop->hasDecodedFile(uuid))
1626
1627 if (gAudiop->hasDecodedFile(uuid))
1628 { 1626 {
1629 // Already have a decoded version, don't need to decode it. 1627 // Already have a decoded version, don't need to decode it.
1630 mHasLocalData = TRUE; 1628 mHasLocalData = TRUE;
1631 mHasDecodedData = TRUE; 1629 mHasDecodedData = TRUE;
1632 } 1630 }
1633 else if (gAssetStorage->hasLocalAsset(uuid, LLAssetType::AT_SOUND)) 1631 else if (gAssetStorage && gAssetStorage->hasLocalAsset(uuid, LLAssetType::AT_SOUND))
1634 { 1632 {
1635 mHasLocalData = TRUE; 1633 mHasLocalData = TRUE;
1636 } 1634 }