]> git.mxchange.org Git - flightgear.git/commitdiff
Add a proper typecast
authorehofman <ehofman>
Thu, 22 Oct 2009 12:53:48 +0000 (12:53 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 22 Oct 2009 21:14:13 +0000 (23:14 +0200)
src/ATCDCL/AIPlane.cxx

index 0706fe3675b7d9eca62b709fb7a26e61d5f1408a..1a3e77dc005ce7e5c07daae461100b2b9bf09eb1 100644 (file)
@@ -201,7 +201,7 @@ void FGAIPlane::Render(const string& refname, const float volume, bool repeating
        if(voice) {
            string buf = vPtr->WriteMessage((char*)pending_transmission.c_str(), voice);
            if(voice && (volume > 0.05)) {
-                std::auto_ptr<unsigned char> ptr( buf.c_str() );
+                std::auto_ptr<unsigned char> ptr( (unsigned char*)buf.c_str() );
                SGSoundSample* simple = 
                    new SGSoundSample(ptr, buf.length(), 8000 );
                 // TODO - at the moment the volume can't be changed