]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/nodedef.h
Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)
[dragonfireclient.git] / src / nodedef.h
index da3345d8023ebc2307ac3c1391eae545f2d1e281..83968ce270d3a69afadb6d017516bce7484327cd 100644 (file)
@@ -218,14 +218,14 @@ struct TileDef
 
        struct TileAnimationParams animation;
 
-       TileDef()
+       TileDef() :
+               name(""),
+               backface_culling(true),
+               tileable_horizontal(true),
+               tileable_vertical(true),
+               has_color(false),
+               color(video::SColor(0xFFFFFFFF))
        {
-               name = "";
-               backface_culling = true;
-               tileable_horizontal = true;
-               tileable_vertical = true;
-               has_color = false;
-               color = video::SColor(0xFFFFFFFF);
                animation.type = TAT_NONE;
        }