From: kwolekr Date: Mon, 29 Apr 2013 01:07:09 +0000 (-0400) Subject: Fix itemdef drop on NULL texture X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c824abd7b2e199d9c7e3dcc2839a28275f4120f2;p=zefram%2Fminetest%2Fminetest_engine.git Fix itemdef drop on NULL texture --- diff --git a/src/itemdef.cpp b/src/itemdef.cpp index 784919ae..05328ea4 100644 --- a/src/itemdef.cpp +++ b/src/itemdef.cpp @@ -247,7 +247,8 @@ public: i = values.begin(); i != values.end(); ++i) { ClientCached *cc = *i; - cc->wield_mesh->drop(); + if (cc->wield_mesh) + cc->wield_mesh->drop(); delete cc; }