diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp index 8de5125c..c3add140 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -183,7 +183,7 @@ bool Being::hasPath() void Being::nextStep() { - if (path->next) { + if (path && path->next) { int old_x, old_y, new_x, new_y; old_x = path->x; old_y = path->y; |