gump errata (thanks vorspire)

This commit is contained in:
Mark Sturgill 2013-10-11 03:57:38 -07:00
parent ddcc4e7a20
commit 0e31731d01
2 changed files with 11 additions and 13 deletions

View file

@ -70,24 +70,19 @@ namespace Server.Gumps
}
}
public Gump Parent
{
get
{
public Gump Parent {
get {
return m_Parent;
}
set
{
if ( m_Parent != value )
{
if ( m_Parent != null )
{
m_Parent.Remove( this );
}
set {
if (m_Parent != value) {
if (m_Parent != null)
m_Parent.Remove(this);
m_Parent = value;
m_Parent.Add( this );
if (m_Parent != null)
m_Parent.Add(this);
}
}
}