diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-03 12:18:25 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-03 12:18:25 +0100 |
commit | b3c1a9be2f0c3011ae1249573d04a8bdc72f1e8f (patch) | |
tree | 4bb21e7131346786418337dd365404ae0191b20b /src/World/Level.hpp | |
parent | 1d3db43d2974be14b82ccff4c2c737a6c2dbd2ac (diff) | |
download | MinedMap-b3c1a9be2f0c3011ae1249573d04a8bdc72f1e8f.tar MinedMap-b3c1a9be2f0c3011ae1249573d04a8bdc72f1e8f.zip |
Level: make buffer a member to prevent use-after-free
Diffstat (limited to 'src/World/Level.hpp')
-rw-r--r-- | src/World/Level.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World/Level.hpp b/src/World/Level.hpp index 6cdfc4e..6fd45a8 100644 --- a/src/World/Level.hpp +++ b/src/World/Level.hpp @@ -29,6 +29,7 @@ #include "../NBT/CompoundTag.hpp" #include <cstdint> +#include <vector> namespace MinedMap { @@ -36,6 +37,8 @@ namespace World { class Level { private: + std::vector<uint8_t> buffer; + std::shared_ptr<const NBT::CompoundTag> root; std::shared_ptr<const NBT::CompoundTag> data; |