Skip to content

Commit

Permalink
Fix crash on wielditem/item entities
Browse files Browse the repository at this point in the history
bug was introduced in f3032a6
  • Loading branch information
sfan5 committed Mar 28, 2020
1 parent 3c0d309 commit 0496149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/content_cao.cpp
Expand Up @@ -829,7 +829,8 @@ void GenericCAO::setNodeLight(u8 light)
if (m_prop.visual == "wielditem" || m_prop.visual == "item") {
// Since these types of visuals are using their own shader
// they should be handled separately
m_wield_meshnode->setColor(color);
if (m_wield_meshnode)
m_wield_meshnode->setColor(color);
} else if (m_enable_shaders) {
scene::ISceneNode *node = getSceneNode();

Expand Down

0 comments on commit 0496149

Please sign in to comment.