diff options
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(); |