fix ogg load erroneously throwing errors

mastering_effects
cosmonaut 2021-10-26 17:31:00 -07:00
parent 0f9bcbc36f
commit cd30405820
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ static FAudioGMS_SoundInstance* FAudioGMS_INTERNAL_SoundInstance_CreateFromStati
double FAudioGMS_StreamingSound_LoadOGG(char* filePath) double FAudioGMS_StreamingSound_LoadOGG(char* filePath)
{ {
int error = -1; int error = 0;
stb_vorbis *fileHandle = stb_vorbis_open_filename(filePath, &error, NULL); stb_vorbis *fileHandle = stb_vorbis_open_filename(filePath, &error, NULL);
if (error != 0) if (error != 0)