]> git.mxchange.org Git - simgear.git/commitdiff
direction vector needs to be initialized, otherwise garbage data could cause
authorcurt <curt>
Fri, 10 Sep 2004 20:44:42 +0000 (20:44 +0000)
committercurt <curt>
Fri, 10 Sep 2004 20:44:42 +0000 (20:44 +0000)
openal to generate an assertion, aborting the top level app.

simgear/sound/sample_openal.cxx

index ef6db1d8feaae001a0f936ad7a4a5f66b03e40f1..27fc988364e7e4d539d58385e5c7e7aba8b833c0 100644 (file)
@@ -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?