Modernize client code (#6250)
[oweals/minetest.git] / src / particles.cpp
index 10b9811bb4aea98ae38f0f00d913327f0dc2e7e6..b86266f42fdb631cd86c5874a79fa85eab6ae951 100644 (file)
@@ -631,7 +631,7 @@ void ParticleManager::addNodeParticle(IGameDef* gamedef,
 
        // Only use first frame of animated texture
        if (tile.material_flags & MATERIAL_FLAG_ANIMATION)
-               texture = tile.frames[0].texture;
+               texture = (*tile.frames)[0].texture;
        else
                texture = tile.texture;