aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/pegasus/neighborhood/neighborhood.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pegasus/neighborhood/neighborhood.cpp b/engines/pegasus/neighborhood/neighborhood.cpp
index e5d29f0950..5076cf5b2c 100644
--- a/engines/pegasus/neighborhood/neighborhood.cpp
+++ b/engines/pegasus/neighborhood/neighborhood.cpp
@@ -268,7 +268,7 @@ tDirectionConstant Neighborhood::getTurnEntry(const tRoomID room, const tDirecti
if (turnEntry.isEmpty())
turnEntry = _turnTable.findEntry(room, direction, turnDirection, kNoAlternateID);
- return turnEntry.turnDirection;
+ return turnEntry.endDirection;
}
void Neighborhood::findSpotEntry(const tRoomID room, const tDirectionConstant direction, tSpotFlags flags, SpotTable::Entry &spotEntry) {