summaryrefslogtreecommitdiffstats
path: root/src/World/Level.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/World/Level.cpp')
-rw-r--r--src/World/Level.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/World/Level.cpp b/src/World/Level.cpp
index 8cd396e..56628b9 100644
--- a/src/World/Level.cpp
+++ b/src/World/Level.cpp
@@ -29,14 +29,12 @@
#include "../Util.hpp"
#include "../NBT/IntTag.hpp"
-#include <iostream>
-
namespace MinedMap {
namespace World {
Level::Level(const char *filename) {
- std::vector<uint8_t> buffer = readGZip(filename);
+ buffer = readGZip(filename);
Buffer nbt(buffer.data(), buffer.size());
std::pair<std::string, std::shared_ptr<const NBT::Tag>> tag = NBT::Tag::readNamedTag(&nbt);