mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:23:54 +00:00
Merge pull request #2239 from akortunov/warnfix
[Regression] Fix missing null check
This commit is contained in:
commit
ee03d69d49
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue