From 892c36144923bfb7531c340026ae0b3ed5afc164 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 19 Feb 2022 10:11:12 +0100 Subject: [PATCH] - avoid pointer arithmetic in feebtag. --- source/games/exhumed/src/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index 542083b0c..2f3d83560 100644 --- a/source/games/exhumed/src/player.cpp +++ b/source/games/exhumed/src/player.cpp @@ -114,7 +114,7 @@ void feebtag(int x, int y, int z, sectortype* pSector, DExhumedActor **nSprite, { *nSprite = nullptr; - auto startwall = pSector->firstWall(); + int startwall = pSector->wallptr; int nWalls = pSector->wallnum; @@ -162,7 +162,7 @@ void feebtag(int x, int y, int z, sectortype* pSector, DExhumedActor **nSprite, if (nWalls < -1) return; - pSector = startwall->nextSector(); + pSector = wall[startwall].nextSector(); startwall++; } }