]> git.mxchange.org Git - flightgear.git/commitdiff
fix a pointer reference.
authorehofman <ehofman>
Mon, 26 Oct 2009 09:47:16 +0000 (09:47 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 26 Oct 2009 17:55:31 +0000 (18:55 +0100)
src/ATCDCL/AIPlane.cxx

index 9ab162b6f68d3f863c3e0dde9367dc78a4ba3120..8fd67d13aeb190b837706c8996e27c339f068b90 100644 (file)
@@ -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);