summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentManagers
diff options
context:
space:
mode:
authoratravita-mods <94934860+atravita-mods@users.noreply.github.com>2022-08-18 20:51:45 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-10-08 13:27:06 -0400
commitd29c01b8155a6fe2607066da6f0a5cfb45b28d3c (patch)
tree329fc1f103ca88af79e688e7c1524c57c617512b /src/SMAPI/Framework/ContentManagers
parent627100509c0a9c637b495473ef71f13093e885d2 (diff)
downloadSMAPI-d29c01b8155a6fe2607066da6f0a5cfb45b28d3c.tar.gz
SMAPI-d29c01b8155a6fe2607066da6f0a5cfb45b28d3c.tar.bz2
SMAPI-d29c01b8155a6fe2607066da6f0a5cfb45b28d3c.zip
Partially revert "Favor record structs when there are four or fewer elements."
This reverts commit f5d49515c4eddfb415903a89d70654cf9b6de299.
Diffstat (limited to 'src/SMAPI/Framework/ContentManagers')
-rw-r--r--src/SMAPI/Framework/ContentManagers/GameContentManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
index a8c70356..df7bdc59 100644
--- a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
+++ b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
@@ -172,7 +172,7 @@ namespace StardewModdingAPI.Framework.ContentManagers
where T : notnull
{
// find matching loader
- AssetLoadOperation loader = default;
+ AssetLoadOperation? loader = null;
if (loadOperations?.Count > 0)
{
if (!this.AssertMaxOneRequiredLoader(info, loadOperations, out string? error))
@@ -183,7 +183,7 @@ namespace StardewModdingAPI.Framework.ContentManagers
loader = loadOperations.OrderByDescending(p => p.Priority).FirstOrDefault();
}
- if (loader.Mod == null) // aka, this is default.
+ if (loader == null)
return null;
// fetch asset from loader