diff --git a/source/games/sw/src/sector.cpp b/source/games/sw/src/sector.cpp index 07c2dd56a..954e387d2 100644 --- a/source/games/sw/src/sector.cpp +++ b/source/games/sw/src/sector.cpp @@ -2242,7 +2242,7 @@ void PlayerOperateEnv(PLAYER* pp) pp->KeyPressBits &= ~SB_OPEN; // crude and very awful hack for wd secret area - if (pp->cursector == §or[491] && currentLevel->levelNumber == 11 && sector[715].lotag == TAG_SECRET_AREA_TRIGGER) + if (sector.Size() > 715 && pp->cursector == §or[491] && currentLevel->levelNumber == 11 && sector[715].lotag == TAG_SECRET_AREA_TRIGGER) { TriggerSecret(§or[715], pp); }