aboutsummaryrefslogtreecommitdiffstats
path: root/include/texture.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-06-29 17:56:48 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-06-29 17:56:48 -0400
commit3766c45c62eeca442e9ab700c09c547f08615b62 (patch)
tree37e2c5c2c28f7a0c79eb39daa6276e018595be18 /include/texture.hpp
parentdf12451f837854c816bed32ae0d962fba9601959 (diff)
chests, item dropping
Diffstat (limited to 'include/texture.hpp')
-rw-r--r--include/texture.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/texture.hpp b/include/texture.hpp
index c301af1..7f22a79 100644
--- a/include/texture.hpp
+++ b/include/texture.hpp
@@ -46,6 +46,9 @@ public:
TextureIterator(void) {
position = std::begin(textures);
}
+ ~TextureIterator(void) {
+ textures.clear();
+ }
TextureIterator(const std::vector<std::string> &l) {
for (const auto &s : l)
textures.emplace_back(Texture::loadTexture(s), s);