Fix itemdef drop on NULL texture

pull/690/head
kwolekr 2013-04-28 21:07:09 -04:00
parent d7395cd2ab
commit c824abd7b2
1 changed files with 2 additions and 1 deletions

View File

@ -247,7 +247,8 @@ public:
i = values.begin(); i != values.end(); ++i) i = values.begin(); i != values.end(); ++i)
{ {
ClientCached *cc = *i; ClientCached *cc = *i;
cc->wield_mesh->drop(); if (cc->wield_mesh)
cc->wield_mesh->drop();
delete cc; delete cc;
} }