From 42e5222cbf292e8fb488e8913667dd42698c7449 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Wed, 31 Oct 2018 00:38:49 +0100 Subject: [PATCH] [libgdx] Simpler hashcode. --- .../spine-libgdx/src/com/esotericsoftware/spine/Skin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java index ecff30cf0..2d053ce41 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java @@ -127,7 +127,7 @@ public class Skin { if (name == null) throw new IllegalArgumentException("name cannot be null."); this.slotIndex = slotIndex; this.name = name; - hashCode = 31 * (31 + name.hashCode()) + slotIndex; + hashCode = name.hashCode() + slotIndex * 37; } public int hashCode () {