From b30f16d7c9a832ed09b5cd03d73f343f933ca872 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 28 Mar 2018 19:21:50 +0500 Subject: Minor Section optimizations --- src/Section.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Section.hpp') 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 block; - std::vector light; - std::vector sky; + unsigned char light[2048] = {}; + unsigned char sky[2048] = {}; unsigned char bitsPerBlock = 0; std::vector palette; @@ -20,7 +20,7 @@ class Section { std::map overrideList; public: - Section(Vector pos, unsigned char bitsPerBlock, std::vector palette, std::vector blockData, std::vector lightData, std::vector skyData); + Section(Vector pos, unsigned char bitsPerBlock, std::vector palette, std::vector blockData, const std::vector &lightData, const std::vector &skyData); Section() = default; -- cgit v1.2.3