Revision: 16991
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16991
Author:   ben2610
Date:     2008-10-09 08:20:16 +0200 (Thu, 09 Oct 2008)

Log Message:
-----------
Fix a crash on null pointer in previous commit.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_SoundActuator.cpp

Modified: trunk/blender/source/gameengine/Ketsji/KX_SoundActuator.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_SoundActuator.cpp 2008-10-09 
06:06:11 UTC (rev 16990)
+++ trunk/blender/source/gameengine/Ketsji/KX_SoundActuator.cpp 2008-10-09 
06:20:16 UTC (rev 16991)
@@ -101,7 +101,6 @@
        if (!frame)
                return true;
        bool result = false;
-       bool isplaying = (m_soundObject->GetPlaystate() != SND_STOPPED) ? true 
: false;
 
        // do nothing on negative events, otherwise sounds are played twice!
        bool bNegativeEvent = IsNegativeEvent();
@@ -111,6 +110,9 @@
        if (!m_soundObject)
                return false;
 
+       // actual audio device playing state
+       bool isplaying = (m_soundObject->GetPlaystate() != SND_STOPPED) ? true 
: false;
+
        if (m_pino)
        {
                bNegativeEvent = true;


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to