Skip to content

Commit

Permalink
D'oh! This is C++14. Don't use std::size().
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoikas committed Jun 23, 2024
1 parent a569a41 commit 1571eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/PRP/Geometry/plDrawableSpans.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,10 @@ void plDrawableSpans::calcBounds()
reboundPts[0].Z = fIcicles[i]->getWaterHeight() - kMaxWaveHeight;
reboundPts[1].Z = fIcicles[i]->getWaterHeight() + kMaxWaveHeight;

world.setFromPoints(std::size(reboundPts), reboundPts);
world.setFromPoints(2, reboundPts);
for (hsVector3& pt : reboundPts)
pt = fIcicles[i]->getWorldToLocal().multPoint(pt);
loc.setFromPoints(std::size(reboundPts), reboundPts);
loc.setFromPoints(2, reboundPts);
} else {
auto localPoints = std::make_unique<hsVector3[]>(verts.size());
auto worldPoints = std::make_unique<hsVector3[]>(verts.size());
Expand Down

0 comments on commit 1571eb4

Please sign in to comment.