use GetFilePriv

This commit is contained in:
Glenn Maynard
2004-09-05 03:41:40 +00:00
parent 0bfb1d5058
commit cbea6c75bc
+2 -3
View File
@@ -399,15 +399,14 @@ RageFileObj *RageFileDriverZip::Open( const CString &path, int mode, RageFile &p
return NULL;
}
const File *f = FDB->GetFile( path );
if( f == NULL )
FileInfo *info = (FileInfo *) FDB->GetFilePriv( path );
if( info == NULL )
{
err = ENOENT;
return NULL;
}
/* If we havn't figured out the offset to the real data yet, do so now. */
FileInfo *info = (FileInfo *) f->priv;
if( info->data_offset == -1 )
{
zip.Seek( info->offset );