Fix hashCode() crash

This commit is contained in:
Aidan C. Brady 2013-10-30 23:50:38 -04:00
parent abe549bf13
commit 43ee7f68df

View file

@ -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;
} }