diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-06-04 18:56:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 18:56:27 -0400 |
commit | 74a8399b9c51d9f21036a052dcedcf42453ddc14 (patch) | |
tree | 47d70a478a81f73a261140fb6a4991636e1703b5 /src/SMAPI | |
parent | 43a9ee42aac1eaf2ff630d164bc425718a531a64 (diff) | |
parent | 2c9c4fbc65136e30ee5daa28a99bcaa665908d60 (diff) | |
download | SMAPI-74a8399b9c51d9f21036a052dcedcf42453ddc14.tar.gz SMAPI-74a8399b9c51d9f21036a052dcedcf42453ddc14.tar.bz2 SMAPI-74a8399b9c51d9f21036a052dcedcf42453ddc14.zip |
Merge pull request #719 from ZaneYork/develop
Bug fix: Provide seed to Aggregate op
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs b/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs index 898d7fad..47cc6508 100644 --- a/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs +++ b/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs @@ -127,7 +127,7 @@ namespace StardewModdingAPI.Framework.ModLoading.Framework return Tuple.Create(anyRewritten, e); } }) - .Aggregate((a, b) => Tuple.Create(a.Item1 || b.Item1, a.Item2 ?? b.Item2)); + .Aggregate(Tuple.Create(false, null as Exception), (a, b) => Tuple.Create(a.Item1 || b.Item1, a.Item2 ?? b.Item2)); bool rewritten = result.Item1; Exception exception = result.Item2; |