fix error check

This commit is contained in:
Glenn Maynard
2005-04-27 01:48:52 +00:00
parent 64daf9379d
commit a5ab1a5664
+1 -1
View File
@@ -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;