Skip to content

Commit

Permalink
const vertinto * in savec()
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Feb 23, 2025
1 parent 9bba951 commit 2de9d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/world/worldio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ void cubeworld::savec(const std::array<cube, 8> &c, const ivec &o, int size, str
{
if(surfmask&(1<<j))
{
surfaceinfo surf = c[i].ext->surfaces[j];
vertinfo *verts = c[i].ext->verts() + surf.verts;
surfaceinfo surf = c[i].ext->surfaces[j]; //intentional copy
const vertinfo *verts = c[i].ext->verts() + surf.verts;
int layerverts = surf.numverts&Face_MaxVerts,
numverts = surf.totalverts(),
vertmask = 0,
Expand Down

0 comments on commit 2de9d61

Please sign in to comment.