1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-22 10:39:40 +00:00

Merge pull request #2239 from akortunov/warnfix

[Regression] Fix missing null check
This commit is contained in:
Bret Curtis 2019-03-10 11:38:03 +01:00 committed by GitHub
commit ee03d69d49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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