Skip to content

Commit

Permalink
simplify assignments in loadc()
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Feb 23, 2025
1 parent cf50e6c commit 9bba951
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/engine/world/worldio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,8 @@ void loadc(stream *f, cube &c, const ivec &co, int size, bool &failed)
}
if(octsav&0x20)
{
int surfmask, totalverts;
surfmask = f->getchar();
totalverts = std::max(f->getchar(), 0);
int surfmask = f->getchar(),
totalverts = std::max(f->getchar(), 0);
newcubeext(c, totalverts, false);
c.ext->surfaces.fill({0,0});
std::memset(c.ext->verts(), 0, totalverts*sizeof(vertinfo));
Expand Down

0 comments on commit 9bba951

Please sign in to comment.