diff --git a/source/games/duke/src/sectors.cpp b/source/games/duke/src/sectors.cpp index 839f1d8c8..16c348d06 100644 --- a/source/games/duke/src/sectors.cpp +++ b/source/games/duke/src/sectors.cpp @@ -1650,7 +1650,7 @@ bool checkhitswitch(int snum, walltype* wwal, DDukeActor* act) break; case SwitchDef::Access: - if (!fi.checkaccessswitch(snum, switchpal, act, wwal)) + if (fi.checkaccessswitch(snum, switchpal, act, wwal)) return 0; [[fallthrough]];