From 900b816162401a6d9006334e2e8e8a9a26a1613b Mon Sep 17 00:00:00 2001 From: Dániel Juhász Date: Fri, 21 Apr 2017 18:04:06 +0200 Subject: Fix after soft node overlays This removes a segmentation fault and makes node meshes well colorized. --- src/wieldmesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wieldmesh.cpp') diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp index 2b23d9e02..8b1477bb7 100644 --- a/src/wieldmesh.cpp +++ b/src/wieldmesh.cpp @@ -438,7 +438,7 @@ void getItemMesh(Client *client, const ItemStack &item, ItemMesh *result) g_extrusion_mesh_cache->grab(); } - scene::SMesh *mesh; + scene::SMesh *mesh = NULL; // If inventory_image is defined, it overrides everything else if (def.inventory_image != "") { -- cgit v1.2.3