direction vector needs to be initialized, otherwise garbage data could cause

openal to generate an assertion, aborting the top level app.
This commit is contained in:
curt 2004-09-10 20:44:42 +00:00
parent f3d8eb4665
commit a7f78b9f68

View 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?