From a0950081ad9cff0c2b6e2a38664b6fdf7b61e159 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 19 Nov 2021 11:21:10 +0100 Subject: [PATCH] - fixed bad sector use in handle_st18 --- source/games/duke/src/sectors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/sectors.cpp b/source/games/duke/src/sectors.cpp index 56cc1895a..b9655c625 100644 --- a/source/games/duke/src/sectors.cpp +++ b/source/games/duke/src/sectors.cpp @@ -653,7 +653,7 @@ static void handle_st18(int sn, DDukeActor* actor) if (i == -1) { auto sectp = nextsectorneighborzptr(sptr, sptr->floorz, 1, -1); - if (sectp == nullptr) sectp = nextsectorneighborzptr(sectp, sptr->floorz, 1, 1); + if (sectp == nullptr) sectp = nextsectorneighborzptr(sptr, sptr->floorz, 1, 1); if (sectp == nullptr) return; int j = sectp->floorz; int q = sptr->extra;