Skip to content

Commit 0496149

Browse files
committedMar 28, 2020
Fix crash on wielditem/item entities
bug was introduced in f3032a6
1 parent 3c0d309 commit 0496149

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/client/content_cao.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,8 @@ void GenericCAO::setNodeLight(u8 light)
829829
if (m_prop.visual == "wielditem" || m_prop.visual == "item") {
830830
// Since these types of visuals are using their own shader
831831
// they should be handled separately
832-
m_wield_meshnode->setColor(color);
832+
if (m_wield_meshnode)
833+
m_wield_meshnode->setColor(color);
833834
} else if (m_enable_shaders) {
834835
scene::ISceneNode *node = getSceneNode();
835836

0 commit comments

Comments
 (0)
Please sign in to comment.