fix compile failing with older openal libs

This commit is contained in:
darkrose 2014-10-06 05:07:51 +10:00
parent b88e2a025b
commit f73007e474
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ SoundBuffer* loadOggFile(const std::string &filepath)
OggVorbis_File oggFile; OggVorbis_File oggFile;
// Try opening the given file // Try opening the given file
if (ov_fopen(filepath.c_str(), &oggFile) != 0) { if (ov_fopen((char*)filepath.c_str(), &oggFile) != 0) {
infostream<<"Audio: Error opening "<<filepath<<" for decoding"<<std::endl; infostream<<"Audio: Error opening "<<filepath<<" for decoding"<<std::endl;
return NULL; return NULL;
} }