fixed infinite loop

This commit is contained in:
iAmAsval 2021-01-04 14:31:14 +01:00
parent 841e76d2d7
commit 92fca5278d
2 changed files with 2 additions and 2 deletions

View File

@ -18,10 +18,10 @@ namespace FModel.PakReader.Parsers.Class
var header = new FUnversionedHeader(reader);
if (header.HasValues)
{
FUnversionedType unversionedType = reader.GetOrCreateSchema(type);
using var it = new FIterator(header);
if (header.HasNonZeroValues)
{
FUnversionedType unversionedType = reader.GetOrCreateSchema(type);
var num = 1;
do
{

View File

@ -214,8 +214,8 @@ namespace FModel.PakReader.Parsers
bNop = !bNested && schema.PropCount == 0;
bNested = true;
type = schema.SuperType;
}
type = schema.SuperType;
}
Globals.CachedSchemas[export] = ret;