From 11d15b451347674fba77648700d23c5aaec3c6c2 Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 26 Oct 2009 09:47:16 +0000 Subject: [PATCH 1/1] fix a pointer reference. --- src/ATCDCL/AIPlane.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ATCDCL/AIPlane.cxx b/src/ATCDCL/AIPlane.cxx index 9ab162b6f..8fd67d13a 100644 --- a/src/ATCDCL/AIPlane.cxx +++ b/src/ATCDCL/AIPlane.cxx @@ -198,7 +198,7 @@ void FGAIPlane::Render(const string& refname, const float volume, bool repeating size_t len; void* buf = vPtr->WriteMessage(pending_transmission, &len); if(voice && (volume > 0.05)) { - SGSoundSample* simple = new SGSoundSample(buf, len, 8000 ); + SGSoundSample* simple = new SGSoundSample(&buf, len, 8000 ); simple->set_volume(volume); _sgr->add(simple, refname); _sgr->play(refname, repeating); -- 2.39.5