From fa9dcd6b76c7123cc63251a52e2610e9711f742c Mon Sep 17 00:00:00 2001 From: gerstrong Date: Thu, 23 Jul 2009 07:21:39 +0000 Subject: [PATCH] Changed hq_sound fixing problem when loading. (Still not finished) git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@118 4df4b0f3-56ce-47cb-b001-ed939b7d65a6 --- src/hqp/hq_sound.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hqp/hq_sound.cpp b/src/hqp/hq_sound.cpp index f0cba3a85..232d4bf2c 100644 --- a/src/hqp/hq_sound.cpp +++ b/src/hqp/hq_sound.cpp @@ -26,7 +26,9 @@ short HQSndDrv_Load(SDL_AudioSpec *AudioSpec, stHQSound *psound, const std::stri #ifdef BUILD_WITH_OGG if(openOGGSound(fp, &AudioFileSpec, AudioSpec->format, psound) != 0) { - g_pLogFile->ftextOut(PURPLE,"OGG file could not be opened: \"%s\". The file was detected, but appears to be damaged. Trying to load the classical sound
", soundfile); + char *buf2; + buf2 = (char*) soundfile.c_str(); + g_pLogFile->ftextOut(PURPLE,"OGG file could not be opened: \"%s\". The file was detected, but appears to be damaged. Trying to load the classical sound
", (const char*)buf2); return 1; } psound->enabled = true;