From d677440f6d8487a4eca613803aff0e091dcd71f3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 19 Sep 2015 21:44:51 +0900 Subject: Chunk: fix check for chunks with missing light data --- src/World/Chunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/World/Chunk.cpp b/src/World/Chunk.cpp index cdc2806..dae66ff 100644 --- a/src/World/Chunk.cpp +++ b/src/World/Chunk.cpp @@ -99,7 +99,7 @@ void Chunk::parseChunk() { void Chunk::analyzeChunk() { std::shared_ptr lightPopulatedTag = level->get("LightPopulated"); - if (!lightPopulatedTag && lightPopulatedTag->getValue()) + if (!(lightPopulatedTag && lightPopulatedTag->getValue())) throw std::invalid_argument("light data missing"); sections = assertValue(level->get>("Sections")); -- cgit v1.2.3