aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/hero.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge2/hero.cpp')
-rw-r--r--engines/cge2/hero.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/hero.cpp b/engines/cge2/hero.cpp
index 1ddf870214..5e075d8fa2 100644
--- a/engines/cge2/hero.cpp
+++ b/engines/cge2/hero.cpp
@@ -542,7 +542,7 @@ int CGE2Engine::mapCross(const V2D &a, const V2D &b) {
if (cross(a, b, *n0, *n))
++cnt;
- if (n == p)
+ if (*n == *p)
p = nullptr;
} else {
p = n;