mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-21 20:05:45 +02:00
Fix various code & correctness issues (#11815)
This commit is contained in:
@@ -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;
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user