X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fsample_openal.hxx;h=d2cb1824763a7a76b3769397bc80a0956c9464e0;hb=1da09a47065cea3dfb23f680c6ed1b2297f3895c;hp=f85160189380fa3bffe5b742a2d7ce5c89179751;hpb=8d551c266430b283da04e1a9e4fdf70e8f63362f;p=simgear.git diff --git a/simgear/sound/sample_openal.hxx b/simgear/sound/sample_openal.hxx index f8516018..d2cb1824 100644 --- a/simgear/sound/sample_openal.hxx +++ b/simgear/sound/sample_openal.hxx @@ -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; } /**