Skip to content

Commit

Permalink
Fix: getAreaExits does not return special exits (Mudlet#5963)
Browse files Browse the repository at this point in the history
  • Loading branch information
keneanung authored Feb 9, 2022
1 parent f2f3dd0 commit 47b3014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TArea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,10 @@ const QMultiMap<int, QPair<QString, int>> TArea::getAreaExitRoomData() const
itSpecialExit.next();
QPair<QString, int> exitData;
exitData.first = itSpecialExit.key();
exitData.second = itSpecialExit.value();
TRoom* pToRoom = mpRoomDB->getRoom(exitData.second);
if (pToRoom && mpRoomDB->getArea(pToRoom->getArea()) != this) {
// Note that pToRoom->getArea() is misnamed, should be getAreaId() !
exitData.second = itSpecialExit.value();
if (!exitData.first.isEmpty()) {
results.insert(fromRoomId, exitData);
}
Expand Down

0 comments on commit 47b3014

Please sign in to comment.