summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Extensions.cs
diff options
context:
space:
mode:
authorClxS <slxxls92@gmail.com>2016-03-12 22:36:30 +0000
committerClxS <slxxls92@gmail.com>2016-03-12 22:36:30 +0000
commit78609647e9e5ed6310942eaf104f495353e328e3 (patch)
tree278bf90be1aff05e623c17e3cebc37709b20d898 /StardewModdingAPI/Extensions.cs
parentbc84a66a6fd2dd3b334eaf8405ef8b4fc6b4acc0 (diff)
parentd367b0a7bceeac210ee7336477f98559b6122d13 (diff)
downloadSMAPI-78609647e9e5ed6310942eaf104f495353e328e3.tar.gz
SMAPI-78609647e9e5ed6310942eaf104f495353e328e3.tar.bz2
SMAPI-78609647e9e5ed6310942eaf104f495353e328e3.zip
Updated release branch to 0.37.3
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