From 9c8d6ee663c5b3aabc9019bd538230bb46338596 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 22 Oct 2009 12:53:48 +0000 Subject: [PATCH] Add a proper typecast --- 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 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 -- 2.39.5