mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Fixed: #5 Applied check to validate parent skeleton is valid, patch provided by Vinicius Arroya.
This commit is contained in:
parent
bced63993b
commit
971c2ba4a3
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ void CAttachedFX::create(CCharacterCL &parent,
|
||||||
if (targeterInfo.StickMode.UserBoneName != 0)
|
if (targeterInfo.StickMode.UserBoneName != 0)
|
||||||
{
|
{
|
||||||
CEntityCL *targeter = EntitiesMngr.entity(TargeterInfo.Slot);
|
CEntityCL *targeter = EntitiesMngr.entity(TargeterInfo.Slot);
|
||||||
if (targeter && targeter->skeleton())
|
if (parent.skeleton() && targeter && targeter->skeleton())
|
||||||
{
|
{
|
||||||
TargeterUserBoneID = parent.skeleton()->getBoneIdByName(NLMISC::CStringMapper::unmap(TargeterInfo.StickMode.UserBoneName));
|
TargeterUserBoneID = parent.skeleton()->getBoneIdByName(NLMISC::CStringMapper::unmap(TargeterInfo.StickMode.UserBoneName));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue