mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +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.");
|
||||
this.slotIndex = slotIndex;
|
||||
this.name = name;
|
||||
hashCode = 31 * (31 + name.hashCode()) + slotIndex;
|
||||
hashCode = name.hashCode() + slotIndex * 37;
|
||||
}
|
||||
|
||||
public int hashCode () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user