1
0
forked from mirrors/0ad

# Fixed failure when saving maps

FilePacker: removed code that used to be in a #ifdef SCED
Changed to PSERROR system, for error-reporting consistency

This was SVN commit r3728.
This commit is contained in:
Ykkrosh
2006-04-04 04:14:10 +00:00
parent b37d3f2095
commit 6365c30098
13 changed files with 211 additions and 172 deletions
+3 -3
View File
@@ -57,7 +57,7 @@ CModelDef* CModelDef::Load(const char* filename)
// check version
if (unpacker.GetVersion()<FILE_READ_VERSION) {
throw CFileUnpacker::CFileVersionError();
throw PSERROR_File_InvalidVersion();
}
CModelDef* mdef=new CModelDef;
@@ -95,9 +95,9 @@ CModelDef* CModelDef::Load(const char* filename)
}
}
}
} catch (CFileUnpacker::CFileEOFError) {
} catch (PSERROR_File_UnexpectedEOF&) {
delete mdef;
throw CFileUnpacker::CFileEOFError();
throw;
}
return mdef;