diff options
Diffstat (limited to 'src/Section.hpp')
-rw-r--r-- | src/Section.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Section.hpp b/src/Section.hpp index bc8b70b..b85eb43 100644 --- a/src/Section.hpp +++ b/src/Section.hpp @@ -8,8 +8,8 @@ class Section { std::vector<long long> block; - std::vector<unsigned char> light; - std::vector<unsigned char> sky; + unsigned char light[2048] = {}; + unsigned char sky[2048] = {}; unsigned char bitsPerBlock = 0; std::vector<unsigned short> palette; @@ -20,7 +20,7 @@ class Section { std::map<Vector, BlockId> overrideList; public: - Section(Vector pos, unsigned char bitsPerBlock, std::vector<unsigned short> palette, std::vector<long long> blockData, std::vector<unsigned char> lightData, std::vector<unsigned char> skyData); + Section(Vector pos, unsigned char bitsPerBlock, std::vector<unsigned short> palette, std::vector<long long> blockData, const std::vector<unsigned char> &lightData, const std::vector<unsigned char> &skyData); Section() = default; |