Merge pull request #2239 from akortunov/warnfix

[Regression] Fix missing null check
pull/2242/head
Bret Curtis 6 years ago committed by GitHub
commit ee03d69d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -242,7 +242,8 @@ void ActorAnimation::updateHolsteredWeapon(bool showHolsteredWeapons)
{
osg::Vec4f glowColor = getEnchantmentColor(*weapon);
mScabbard = getWeaponPart(mesh, boneName, isEnchanted, &glowColor);
resetControllers(mScabbard->getNode());
if (mScabbard)
resetControllers(mScabbard->getNode());
}
return;

Loading…
Cancel
Save