]> git.mxchange.org Git - simgear.git/commitdiff
_data is not an array of pointer
authorehofman <ehofman>
Fri, 16 Oct 2009 11:37:52 +0000 (11:37 +0000)
committerTim Moore <timoore@redhat.com>
Sat, 17 Oct 2009 11:39:34 +0000 (13:39 +0200)
simgear/sound/sample_openal.hxx

index 49a7c01e359fdd5ac0e61a39cedff8bce680567b..acc7fb73f8e2868948005dfeafe7b7a75db03496 100644 (file)
@@ -52,7 +52,7 @@ private:
 
     // Position of the source sound.
     SGVec3d _absolute_pos;     // absolute position
-    SGVec3f _relative_pos;     // position relative to the base position
+    SGVec3d _relative_pos;     // position relative to the base position
     SGVec3d _direction;                // orientation offset
     SGVec3d _velocity;         // Velocity of the source sound.
 
@@ -201,7 +201,7 @@ public:
      * free the data associated with this sample
      */
     inline void free_data() {
-        if (_data != NULL) { delete[] _data; _data = NULL; }
+        if (_data != NULL) { delete _data; _data = NULL; }
     }
 
     /**