From 145a7fa1467c028f80e141a324950b2c47e34b7b Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 29 Oct 2009 17:03:16 +0000 Subject: [PATCH] pass the float pointer to the isNaN function instead of the SGVec3 type --- simgear/sound/sample_group.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/sound/sample_group.cxx b/simgear/sound/sample_group.cxx index eed424c1..a5d19641 100644 --- a/simgear/sound/sample_group.cxx +++ b/simgear/sound/sample_group.cxx @@ -384,9 +384,9 @@ void SGSampleGroup::update_sample_config( SGSoundSample *sample ) { if (dist(position, _smgr->get_position()) > 10000) printf("source and listener distance greater than 20km!\n"); - if (isNaN(position)) printf("NaN in source position\n"); - if (isNaN(orientation)) printf("NaN in source orientation\n"); - if (isNaN(velocity)) printf("NaN in source velocity\n"); + if (isNaN(toVec3f(position).data())) printf("NaN in source position\n"); + if (isNaN(orientation.data())) printf("NaN in source orientation\n"); + if (isNaN(velocity.data())) printf("NaN in source velocity\n"); unsigned int source = sample->get_source(); alSourcefv( source, AL_POSITION, toVec3f(position).data() ); -- 2.39.5