Skip to content

Commit

Permalink
- avoid pointer arithmetic in feebtag.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Feb 19, 2022
1 parent 951b931 commit 892c361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/games/exhumed/src/player.cpp
Expand Up @@ -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;

Expand Down Expand Up @@ -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++;
}
}
Expand Down

0 comments on commit 892c361

Please sign in to comment.