fix error check
This commit is contained in:
@@ -285,7 +285,7 @@ SoundReader *RageSoundReader_Vorbisfile::Copy() const
|
||||
|
||||
/* If we were able to open the sound in the first place, we expect to
|
||||
* be able to reopen it. */
|
||||
if( !ret->Open(pFile) )
|
||||
if( ret->Open(pFile) != OPEN_OK )
|
||||
FAIL_M( ssprintf("Copying sound failed: %s", ret->GetError().c_str()) );
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user