Bug in SkillMod?
Was looking at the code for the Owner property on SkillMod:
Unless I misread that, the m_Owner.AddSkillMod will NEVER execute. Shouldn't that be:
m_Owner != null
as the first 'if' is?
Was looking at the code for the Owner property on SkillMod:
Code:
public Mobile Owner
{
get
{
return m_Owner;
}
set
{
if ( m_Owner != value )
{
if ( m_Owner != null )
m_Owner.RemoveSkillMod( this );
[COLOR="Red"]m_Owner = value;
if ( m_Owner != value )[/COLOR]
m_Owner.AddSkillMod( this );
}
}
}
Unless I misread that, the m_Owner.AddSkillMod will NEVER execute. Shouldn't that be:
m_Owner != null
as the first 'if' is?