diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-06-21 13:15:59 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-06-21 13:15:59 +0100 |
commit | 4e8c07d3fd949287fc2361284a5a7704e642396e (patch) | |
tree | 18d7e5c2d41cedb00a29ac303637102c7d4b157d /src/texturecache.cpp | |
parent | f3e75c7f821675740736b46094382d55c7e6ee5c (diff) | |
download | YAGE-4e8c07d3fd949287fc2361284a5a7704e642396e.tar.gz YAGE-4e8c07d3fd949287fc2361284a5a7704e642396e.zip |
Correcting indentation and removed vector2d.cpp
Diffstat (limited to 'src/texturecache.cpp')
-rw-r--r-- | src/texturecache.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/texturecache.cpp b/src/texturecache.cpp index 9bebc72c..ca47217e 100644 --- a/src/texturecache.cpp +++ b/src/texturecache.cpp @@ -12,16 +12,16 @@ TextureCache::~TextureCache() Texture TextureCache::getTexture(const std::string &texture_path) { - auto itr = texture_map_.find(texture_path); + auto itr = texture_map_.find(texture_path); - if(itr == texture_map_.end()) - { - Texture new_texture = ImageLoader::loadPng(texture_path); - texture_map_.insert(make_pair(texture_path, new_texture)); - return new_texture; - } + if(itr == texture_map_.end()) + { + Texture new_texture = ImageLoader::loadPng(texture_path); + texture_map_.insert(make_pair(texture_path, new_texture)); + return new_texture; + } - return itr->second; + return itr->second; } } // yage |