diff options
author | sfan5 <sfan5@live.de> | 2021-12-05 14:40:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 14:40:30 +0100 |
commit | ff934d538c00518476c31f5df6ebc4be5ca79591 (patch) | |
tree | f4e261ef192fe4410fc1f5e56e04d8c7645d92dc /src/client | |
parent | 7a043b3ebbbf250890f39a9afecebba1cc9826a6 (diff) | |
download | minetest-ff934d538c00518476c31f5df6ebc4be5ca79591.tar.gz minetest-ff934d538c00518476c31f5df6ebc4be5ca79591.tar.bz2 minetest-ff934d538c00518476c31f5df6ebc4be5ca79591.zip |
Fix various code & correctness issues (#11815)
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/content_cao.cpp | 2 | ||||
-rw-r--r-- | src/client/game.cpp | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/src/client/game.cpp b/src/client/game.cpp index fb993d92f..54028fd1d 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -1383,7 +1383,7 @@ bool Game::createClient(const GameStartData &start_data) str += L" ["; str += text; str += L"]"; - delete text; + delete[] text; } str += L" ["; str += driver->getName(); |