fix: broken std::fill call
Some checks failed
Build (Linux, x86-64) / build-linux (push) Has been cancelled
Format Check / clang-format (push) Has been cancelled

This commit is contained in:
Tropical 2026-04-03 22:00:59 -05:00
parent 31580d44dd
commit 52b8c8a1d5

View file

@ -2677,7 +2677,8 @@ void LevelRenderer::cull(Culler* culler, float a) {
if (m_bfsVisitedFaces[playerIndex].size() < visitedSize) {
m_bfsVisitedFaces[playerIndex].resize(visitedSize, 0);
}
std::fill(m_bfsVisitedFaces[playerIndex].data(), 0, visitedSize);
std::fill(m_bfsVisitedFaces[playerIndex].begin(),
m_bfsVisitedFaces[playerIndex].end(), visitedSize);
q.push_back({startChunk, -1});
m_bfsVisitedFaces[playerIndex][startChunk - chunks[playerIndex].data()] =