Skip to content

Commit

Permalink
Fix itemdef drop on NULL texture
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Apr 29, 2013
1 parent d7395cd commit c824abd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/itemdef.cpp
Expand Up @@ -247,7 +247,8 @@ class CItemDefManager: public IWritableItemDefManager
i = values.begin(); i != values.end(); ++i)
{
ClientCached *cc = *i;
cc->wield_mesh->drop();
if (cc->wield_mesh)
cc->wield_mesh->drop();
delete cc;
}

Expand Down

0 comments on commit c824abd

Please sign in to comment.