Skip to content

Commit

Permalink
Tile.cpp: Fix MSVC build broken by 072bbba
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Mar 24, 2017
1 parent 329d654 commit 5a59ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/tile.cpp
Expand Up @@ -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)) {
Expand All @@ -2277,7 +2277,7 @@ video::ITexture* TextureSource::getNormalTexture(const std::string &name)
i += normal_ext_size;
}
return getTexture(fname_base);
}
}
return NULL;
}

Expand Down

0 comments on commit 5a59ad2

Please sign in to comment.