projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7395cd
)
Fix itemdef drop on NULL texture
author
kwolekr
<kwolekr@minetest.net>
Mon, 29 Apr 2013 01:07:09 +0000
(21:07 -0400)
committer
kwolekr
<kwolekr@minetest.net>
Mon, 29 Apr 2013 01:07:09 +0000
(21:07 -0400)
src/itemdef.cpp
patch
|
blob
|
history
diff --git
a/src/itemdef.cpp
b/src/itemdef.cpp
index 784919ae2deb371732118e6943511519c2be6c1d..05328ea486e4f85118625981330ce5cbedda3d91 100644
(file)
--- 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;
}