Skip to content
Permalink
Browse files

Fix crash on wielditem/item entities

bug was introduced in f3032a6
  • Loading branch information
sfan5 committed Mar 28, 2020
1 parent 3c0d309 commit 04961491c197b4d1aecc1e40c6cb5e738860b31c
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/client/content_cao.cpp
@@ -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();

0 comments on commit 0496149

Please sign in to comment.
You can’t perform that action at this time.