summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-02-25 17:52:56 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-02-25 17:52:56 -0500
commitac5bcce02df70ccc8d62d4803fac9320bd65be96 (patch)
treedab891cdaf3db36435c4f3e8daaadac3b3df1e49
parent9c53a254d50718fee3b8043bb0b8bb840557e82f (diff)
downloadSMAPI-ac5bcce02df70ccc8d62d4803fac9320bd65be96.tar.gz
SMAPI-ac5bcce02df70ccc8d62d4803fac9320bd65be96.tar.bz2
SMAPI-ac5bcce02df70ccc8d62d4803fac9320bd65be96.zip
fix current path not being normalised in path checks (#173)
-rw-r--r--src/StardewModdingAPI/Framework/SContentManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/SContentManager.cs b/src/StardewModdingAPI/Framework/SContentManager.cs
index 344d3ed9..2781bec4 100644
--- a/src/StardewModdingAPI/Framework/SContentManager.cs
+++ b/src/StardewModdingAPI/Framework/SContentManager.cs
@@ -80,7 +80,7 @@ namespace StardewModdingAPI.Framework
// intercept load
T data = base.Load<T>(assetName);
- IContentEventHelper helper = new ContentEventHelper(assetName, data, this.NormaliseAssetKey);
+ IContentEventHelper helper = new ContentEventHelper(key, data, this.NormaliseAssetKey);
ContentEvents.InvokeAssetLoading(this.Monitor, helper);
this.Cache[key] = helper.Data;
return (T)helper.Data;