aboutsummaryrefslogtreecommitdiff
path: root/src/client/content_cao.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-12-05 14:40:30 +0100
committerGitHub <noreply@github.com>2021-12-05 14:40:30 +0100
commitff934d538c00518476c31f5df6ebc4be5ca79591 (patch)
treef4e261ef192fe4410fc1f5e56e04d8c7645d92dc /src/client/content_cao.cpp
parent7a043b3ebbbf250890f39a9afecebba1cc9826a6 (diff)
downloadminetest-ff934d538c00518476c31f5df6ebc4be5ca79591.tar.xz
Fix various code & correctness issues (#11815)
Diffstat (limited to 'src/client/content_cao.cpp')
-rw-r--r--src/client/content_cao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp
index 24a9e7921..a80a3ce4e 100644
--- a/src/client/content_cao.cpp
+++ b/src/client/content_cao.cpp
@@ -850,7 +850,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc, scene::ISceneManager *smgr)
logOnce(oss, warningstream);
video::ITexture *last = m_animated_meshnode->getMaterial(0).TextureLayer[0].Texture;
- for (s32 i = 1; i < mat_count; i++) {
+ for (u32 i = 1; i < mat_count; i++) {
auto &layer = m_animated_meshnode->getMaterial(i).TextureLayer[0];
if (!layer.Texture)
layer.Texture = last;