diff options
Diffstat (limited to 'include/texture.hpp')
-rw-r--r-- | include/texture.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/texture.hpp b/include/texture.hpp index 0ee3e2c..c301af1 100644 --- a/include/texture.hpp +++ b/include/texture.hpp @@ -47,9 +47,9 @@ public: position = std::begin(textures); } TextureIterator(const std::vector<std::string> &l) { - for (const auto &s : l) { + for (const auto &s : l) textures.emplace_back(Texture::loadTexture(s), s); - } + position = std::begin(textures); } void operator++(int) noexcept { |