diff --git a/src/Chunking.cpp b/src/Chunking.cpp index 61fc883..afdb298 100644 --- a/src/Chunking.cpp +++ b/src/Chunking.cpp @@ -140,14 +140,13 @@ static void bufferAppearanceData(std::vector>& slices, const T& d slices.push_back(std::vector()); } -template -static void bufferIdForDisappearance(std::vector>& slices, int32_t id, size_t maxCnt) { +static void bufferIdForDisappearance(std::vector>& slices, int32_t id, size_t maxCnt) { if (slices.empty()) - slices.push_back(std::vector()); - std::vector& slice = slices[slices.size() - 1]; + slices.push_back(std::vector()); + std::vector& slice = slices[slices.size() - 1]; slice.push_back(id); if (slice.size() == maxCnt) - slices.push_back(std::vector()); + slices.push_back(std::vector()); } void Chunking::addEntityToChunks(std::set chnks, const EntityRef ref) {