diff options
author | SmallJoker <mk939@ymail.com> | 2017-03-24 20:05:15 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2017-03-24 20:05:15 +0100 |
commit | 5a59ad230744a84a1474e8c3b97cf3d9080536d7 (patch) | |
tree | 8029d7f5bb93eb1c042ed09ddd14502b3e270400 /src | |
parent | 329d654e378ffc80711687bae0e516ea1712e63c (diff) | |
download | minetest-5a59ad230744a84a1474e8c3b97cf3d9080536d7.tar.gz minetest-5a59ad230744a84a1474e8c3b97cf3d9080536d7.tar.bz2 minetest-5a59ad230744a84a1474e8c3b97cf3d9080536d7.zip |
Tile.cpp: Fix MSVC build broken by 072bbba
Diffstat (limited to 'src')
-rw-r--r-- | src/client/tile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/tile.cpp b/src/client/tile.cpp index 85d388d6e..86ca7d422 100644 --- a/src/client/tile.cpp +++ b/src/client/tile.cpp @@ -2266,7 +2266,7 @@ video::ITexture* TextureSource::getNormalTexture(const std::string &name) return getTexture("override_normal.png"); std::string fname_base = name; static const char *normal_ext = "_normal.png"; - static const uint32_t normal_ext_size = strlen(normal_ext); + static const u32 normal_ext_size = strlen(normal_ext); size_t pos = fname_base.find("."); std::string fname_normal = fname_base.substr(0, pos) + normal_ext; if (isKnownSourceImage(fname_normal)) { @@ -2277,7 +2277,7 @@ video::ITexture* TextureSource::getNormalTexture(const std::string &name) i += normal_ext_size; } return getTexture(fname_base); - } + } return NULL; } |