Fix weekly challenge generation (missing EXP)

This commit is contained in:
GMatrixGames 2020-12-03 12:57:09 -05:00 committed by GitHub
parent bbf7b6d9c5
commit aff147e0b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ namespace FModel.Creator.Bundles
Count = count.Value;
}
if (obj.TryGetValue("RewardsTable", out var v4) && v4 is ObjectProperty rewardsTable)
if (obj.TryGetValue("RewardsTable", out var v4) && v4 is ObjectProperty rewardsTable && rewardsTable.Value.Resource.OuterIndex.Resource != null)
{
Package p = Utils.GetPropertyPakPackage(rewardsTable.Value.Resource.OuterIndex.Resource?.ObjectName.String);
if (p != null && p.HasExport() && !p.Equals(default))