diff --git a/game/navmesh.py b/game/navmesh.py index 2b0fdd81..c1ac6ab0 100644 --- a/game/navmesh.py +++ b/game/navmesh.py @@ -50,6 +50,9 @@ class NavPoint: return hash(self.poly.ident) def __eq__(self, other: object) -> bool: + if id(self) == id(other): + return True + if not isinstance(other, NavPoint): return False