Skip to content

Commit e391a63

Browse files
authored
Fix Point casting
Tried to cast to `Position` instead of `Point` and threw `class cast` exception
1 parent bcc3dbb commit e391a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bwapi/point/Point.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public String toString() {
3333

3434
public boolean equals(Object o) {
3535
if (!(o instanceof Point)) return false;
36-
Point point = (Position) o;
36+
Point point = (Point) o;
3737
return scalar == point.scalar && x == point.x && y == point.y;
3838
}
3939

0 commit comments

Comments
 (0)