mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 05:47:17 +00:00
fix: broken std::fill call
This commit is contained in:
parent
31580d44dd
commit
52b8c8a1d5
|
|
@ -2677,7 +2677,8 @@ void LevelRenderer::cull(Culler* culler, float a) {
|
||||||
if (m_bfsVisitedFaces[playerIndex].size() < visitedSize) {
|
if (m_bfsVisitedFaces[playerIndex].size() < visitedSize) {
|
||||||
m_bfsVisitedFaces[playerIndex].resize(visitedSize, 0);
|
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});
|
q.push_back({startChunk, -1});
|
||||||
m_bfsVisitedFaces[playerIndex][startChunk - chunks[playerIndex].data()] =
|
m_bfsVisitedFaces[playerIndex][startChunk - chunks[playerIndex].data()] =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue