]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/tile.h
Fix trees growing into any type of node
[dragonfireclient.git] / src / tile.h
index 8c1f42e075f4fe9405b4aad5552aa23ba11f2840..ae986e797ebdc38ce8113a8f149ae244c38805a6 100644 (file)
@@ -61,6 +61,14 @@ struct AtlasPointer
        v2f size; // Size in atlas
        u16 tiled; // X-wise tiling count. If 0, width of atlas is width of image.
 
+       AtlasPointer():
+               id(0),
+               atlas(NULL),
+               pos(0,0),
+               size(1,1),
+               tiled(1)
+       {}
+
        AtlasPointer(
                        u16 id_,
                        video::ITexture *atlas_=NULL,