Fix Amenity

This commit is contained in:
Alexey Kulish 2016-07-29 14:44:31 +03:00
parent 297e85b379
commit a681af7753

View file

@ -256,5 +256,12 @@ public class Amenity extends MapObject {
return cmp;
}
@Override
public boolean equals(Object o) {
boolean res = super.equals(o);
if (res && o instanceof Amenity) {
return ((Amenity) o).getType().getKeyName().equals(getType().getKeyName());
}
return res;
}
}