summaryrefslogtreecommitdiff
path: root/src/koopatlas/pathmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/pathmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp
index 435c6f1..169668b 100644
--- a/src/koopatlas/pathmanager.cpp
+++ b/src/koopatlas/pathmanager.cpp
@@ -797,7 +797,12 @@ void dWMPathManager_c::moveThroughPath(int pressedDir) {
if (world->worldID > 0) {
dLevelInfo_c *linfo = &dLevelInfo_c::s_info;
- dLevelInfo_c::entry_s *lastLevel = linfo->searchByDisplayNum(world->worldID-1, lastLevelIDs[world->worldID-1]);
+ dLevelInfo_c::entry_s *lastLevel;
+ if (world->worldID != 7)
+ lastLevel = linfo->searchByDisplayNum(world->worldID-1, lastLevelIDs[world->worldID-1]);
+ else
+ lastLevel = linfo->searchByDisplayNum(7, 3);
+
if (lastLevel) {
wzHack = !(save->GetLevelCondition(lastLevel->worldSlot,lastLevel->levelSlot) & COND_NORMAL);
}