Merge pull request #9718 from penev92/hvaException

Check HVA files validity at load time
This commit is contained in:
abcdefg30
2015-10-26 12:14:28 +01:00
2 changed files with 14 additions and 3 deletions

View File

@@ -220,7 +220,7 @@ namespace OpenRA.Graphics
using (var s = GlobalFileSystem.Open(files.First + ".vxl"))
vxl = new VxlReader(s);
using (var s = GlobalFileSystem.Open(files.Second + ".hva"))
hva = new HvaReader(s);
hva = new HvaReader(s, files.Second + ".hva");
return new Voxel(this, vxl, hva);
}