From a4c7586b310a8be8ffd5c8acad88b5236695c1da Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sat, 7 Jul 2007 19:21:10 +0000 Subject: Fixed teleportation hack caused by caching of pathfinder results. --- src/game-server/state.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game-server/state.cpp') diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp index b1095f45..7ade4d1b 100644 --- a/src/game-server/state.cpp +++ b/src/game-server/state.cpp @@ -356,6 +356,7 @@ void GameState::update() assert(o->getType() == OBJECT_CHARACTER); Character *p = static_cast< Character * >(o); + p->clearDestination(); /* Force update of persistent data on map change, so that characters can respawn at the start of the map after a death or a disconnection. */ -- cgit v1.2.3-70-g09d2