mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Simpler hashcode.
This commit is contained in:
parent
2597e11ee0
commit
42e5222cbf
@ -127,7 +127,7 @@ public class Skin {
|
|||||||
if (name == null) throw new IllegalArgumentException("name cannot be null.");
|
if (name == null) throw new IllegalArgumentException("name cannot be null.");
|
||||||
this.slotIndex = slotIndex;
|
this.slotIndex = slotIndex;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
hashCode = 31 * (31 + name.hashCode()) + slotIndex;
|
hashCode = name.hashCode() + slotIndex * 37;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int hashCode () {
|
public int hashCode () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user