mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Merge pull request #1127 from Azaezel/alpha41/playAudioCrashfix
fix playAudio crash
This commit is contained in:
commit
a44c57aee4
|
|
@ -2301,8 +2301,9 @@ void ShapeBase::updateAudioState(SoundThread& st)
|
|||
if ( isGhost() )
|
||||
{
|
||||
// if asset is valid, play
|
||||
if (st.asset->isAssetValid() )
|
||||
if (st.asset.notNull())
|
||||
{
|
||||
st.asset->loadSound();
|
||||
st.sound = SFX->createSource( st.asset->getSFXTrack() , &getTransform() );
|
||||
if ( st.sound )
|
||||
st.sound->play();
|
||||
|
|
|
|||
Loading…
Reference in a new issue