diff options
-rw-r--r-- | src/game-server/object.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game-server/object.cpp b/src/game-server/object.cpp index a6939e86..5dcafb15 100644 --- a/src/game-server/object.cpp +++ b/src/game-server/object.cpp @@ -67,8 +67,7 @@ void MovingObject::move() { // No path exists: the walkability of cached path has changed, the // destination has changed, or a path was never set. - std::list<PATH_NODE> mPath = map->findPath(tileSX, tileSY, - tileDX, tileDY); + mPath = map->findPath(tileSX, tileSY, tileDX, tileDY); } if (mPath.empty()) |