Tile.cpp: Fix MSVC build broken by 072bbba
authorSmallJoker <mk939@ymail.com>
Fri, 24 Mar 2017 19:05:15 +0000 (20:05 +0100)
committerSmallJoker <mk939@ymail.com>
Fri, 24 Mar 2017 19:05:15 +0000 (20:05 +0100)
src/client/tile.cpp

index 85d388d6ec3e11426102ae9cb9eddc29e058b4bd..86ca7d42221daf9dd0b7fe90490efab286efef49 100644 (file)
@@ -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;
 }