From: curt Date: Fri, 10 Sep 2004 20:44:42 +0000 (+0000) Subject: direction vector needs to be initialized, otherwise garbage data could cause X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a7f78b9f68550efd85e3032cdfaf362664352359;p=simgear.git direction vector needs to be initialized, otherwise garbage data could cause openal to generate an assertion, aborting the top level app. --- diff --git a/simgear/sound/sample_openal.cxx b/simgear/sound/sample_openal.cxx index ef6db1d8..27fc9883 100644 --- a/simgear/sound/sample_openal.cxx +++ b/simgear/sound/sample_openal.cxx @@ -83,6 +83,7 @@ SGSoundSample::SGSoundSample( const char *path, const char *file, source_pos[0] = 0.0; source_pos[1] = 0.0; source_pos[2] = 0.0; offset_pos[0] = 0.0; offset_pos[1] = 0.0; offset_pos[2] = 0.0; source_vel[0] = 0.0; source_vel[1] = 0.0; source_vel[2] = 0.0; + direction[0] = 0.0; direction[1] = 0.0; direction[2] = 0.0; inner = outer = 360.0; outergain = 0.0; // clear errors from elsewhere?