Permalink
Browse files

PINK: fixed bug when in walking state you choose another location

  • Loading branch information...
whiterandrek committed Aug 2, 2018
1 parent d9b3853 commit e9fde87cf225380cbd459c7e28c9f24b28f3cf33
Showing with 3 additions and 3 deletions.
  1. +3 −3 engines/pink/objects/walk/walk_mgr.cpp
@@ -60,16 +60,16 @@ void WalkMgr::toConsole() {
}
void WalkMgr::start(WalkLocation *destination) {
if (_isWalking)
return;
if (_current.name.empty()) {
_current.name = _locations[0]->getName();
_current.coords = getLocationCoordinates(_locations[0]->getName());
}
_destination = destination;
if (_isWalking)
return;
if (_current.name == _destination->getName()) {
end();
} else {

0 comments on commit e9fde87

Please sign in to comment.