Cleanup in content_mapblock (#5746)
[oweals/minetest.git] / src / particles.cpp
index e1f292fb60cf567cb7270a90d8a576fd160cf8c3..7f406d874eb2a26030a3c3029e10d30bf661444e 100644 (file)
@@ -620,7 +620,7 @@ void ParticleManager::addNodeParticle(IGameDef* gamedef,
 {
        // Texture
        u8 texid = myrand_range(0, 5);
-       const TileSpec &tile = f.tiles[texid];
+       const TileLayer &tile = f.tiles[texid].layers[0];
        video::ITexture *texture;
        struct TileAnimationParams anim;
        anim.type = TAT_NONE;