[libgdx] Simpler hashcode.

This commit is contained in:
NathanSweet 2018-10-31 00:38:49 +01:00
parent 2597e11ee0
commit 42e5222cbf

View File

@ -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 () {