Skip to content

Commit c824abd

Browse files
committedApr 29, 2013
Fix itemdef drop on NULL texture
1 parent d7395cd commit c824abd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/itemdef.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ class CItemDefManager: public IWritableItemDefManager
247247
i = values.begin(); i != values.end(); ++i)
248248
{
249249
ClientCached *cc = *i;
250-
cc->wield_mesh->drop();
250+
if (cc->wield_mesh)
251+
cc->wield_mesh->drop();
251252
delete cc;
252253
}
253254

0 commit comments

Comments
 (0)