Fix another case where the direction vector is not initialized which can

lead to openal "inrange" assertions, crashing FlightGear.
This commit is contained in:
curt
2004-09-15 15:28:14 +00:00
parent a7f78b9f68
commit 04e3b0b3c1

View File

@@ -160,6 +160,7 @@ SGSoundSample::SGSoundSample( unsigned char *_data, int len, int _freq,
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?