From: ehofman Date: Thu, 22 Oct 2009 12:53:48 +0000 (+0000) Subject: Add a proper typecast X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9c8d6ee663c5b3aabc9019bd538230bb46338596;p=flightgear.git Add a proper typecast --- diff --git a/src/ATCDCL/AIPlane.cxx b/src/ATCDCL/AIPlane.cxx index 0706fe367..1a3e77dc0 100644 --- a/src/ATCDCL/AIPlane.cxx +++ b/src/ATCDCL/AIPlane.cxx @@ -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 ptr( buf.c_str() ); + std::auto_ptr ptr( (unsigned char*)buf.c_str() ); SGSoundSample* simple = new SGSoundSample(ptr, buf.length(), 8000 ); // TODO - at the moment the volume can't be changed