From a7f78b9f68550efd85e3032cdfaf362664352359 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 10 Sep 2004 20:44:42 +0000 Subject: [PATCH] direction vector needs to be initialized, otherwise garbage data could cause openal to generate an assertion, aborting the top level app. --- simgear/sound/sample_openal.cxx | 1 + 1 file changed, 1 insertion(+) 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?