From c824abd7b2e199d9c7e3dcc2839a28275f4120f2 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sun, 28 Apr 2013 21:07:09 -0400 Subject: [PATCH] Fix itemdef drop on NULL texture --- src/itemdef.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/itemdef.cpp b/src/itemdef.cpp index 784919ae2..05328ea48 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; }