mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix itemdef drop on NULL texture
This commit is contained in:
parent
d7395cd2ab
commit
c824abd7b2
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue