Skip to content

Commit

Permalink
fix to Kill function: should compare using equals, not ==
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Bodden committed Dec 18, 2014
1 parent c3a0ebf commit 19cb6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heros/flowfunc/Kill.java
Expand Up @@ -33,7 +33,7 @@ public Kill(D killValue){
}

public Set<D> computeTargets(D source) {
if(source==killValue) {
if(source.equals(killValue)) {
return emptySet();
} else
return singleton(source);
Expand Down

0 comments on commit 19cb6fb

Please sign in to comment.