diff options
-rw-r--r-- | queen/logic.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp index a01af6e0f7..c1a6d9a8ff 100644 --- a/queen/logic.cpp +++ b/queen/logic.cpp @@ -1749,6 +1749,7 @@ int16 Logic::joeWalkTo(int16 x, int16 y, bool mustWalk) { _newRoom = 0; if (_entryObj != 0 && _cmd->selectedAction().value() != VERB_CLOSE) { + _newRoom = _objectData[_entryObj].room; // because this is an exit object, see if there is // a walk off point and set (x,y) accordingly WalkOffData *wod = walkOffPointForObject(k + _cmd->selectedNoun()); |