summaryrefslogtreecommitdiff
path: root/st/AbstractInstance.java
diff options
context:
space:
mode:
Diffstat (limited to 'st/AbstractInstance.java')
-rw-r--r--st/AbstractInstance.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/st/AbstractInstance.java b/st/AbstractInstance.java
index 7acc3e5..a6c2ca1 100644
--- a/st/AbstractInstance.java
+++ b/st/AbstractInstance.java
@@ -16,7 +16,8 @@ public abstract class AbstractInstance {
}
public boolean equals(AbstractInstance other) {
- return this.name == other.getName();
+ return this.name == other.getName() &&
+ this.type == this.type;
}
public int hashCode() {