]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.hxx
Don't assign the buffer data to the sample in case it is a file. Test for result...
[simgear.git] / simgear / sound / sample_openal.hxx
index f85160189380fa3bffe5b742a2d7ce5c89179751..d2cb1824763a7a76b3769397bc80a0956c9464e0 100644 (file)
@@ -172,7 +172,7 @@ public:
      * Free the data associated with this audio sample
      */
     void free_data() {
-        if ( _data ) free( _data ); _data = NULL;
+        if ( _data != NULL ) free( _data ); _data = NULL;
     }
 
     /**
@@ -337,8 +337,8 @@ public:
         _orientation = ori; _changed = true;
     }
 
-    inline void set_rotation( const SGQuatd& ori ) {
-        _rotation = ori; _changed = true;
+    inline void set_rotation( const SGQuatd& ec2body ) {
+        _rotation = ec2body; _changed = true;
     }
 
     /**