Fix hashCode() crash
This commit is contained in:
parent
abe549bf13
commit
43ee7f68df
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ public abstract class TransporterFilter
|
||||||
public int hashCode()
|
public int hashCode()
|
||||||
{
|
{
|
||||||
int code = 1;
|
int code = 1;
|
||||||
code = 31 * code + color.ordinal();
|
code = 31 * code + (color != null ? color.ordinal() : -1);
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue