1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 12:09:43 +00:00

Fix missing null check

This commit is contained in:
Andrei Kortunov 2019-03-10 11:03:51 +04:00
parent 4a597d94d3
commit 08202f8185

View file

@ -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;