summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Extensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'StardewModdingAPI/Extensions.cs')
-rw-r--r--StardewModdingAPI/Extensions.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/StardewModdingAPI/Extensions.cs b/StardewModdingAPI/Extensions.cs
index 7e849f12..c504f470 100644
--- a/StardewModdingAPI/Extensions.cs
+++ b/StardewModdingAPI/Extensions.cs
@@ -53,12 +53,12 @@ namespace StardewModdingAPI
public static int GetHash(this IEnumerable enumerable)
{
- string s = string.Empty;
+ int hash = 0;
foreach (var v in enumerable)
{
- s += v.GetHashCode().ToString();
+ hash ^= v.GetHashCode();
}
- return s.GetHashCode();
+ return hash;
}
}
} \ No newline at end of file