Fixes more casting
This commit is contained in:
parent
61937d9c97
commit
e77d695684
91 changed files with 512 additions and 908 deletions
|
|
@ -78,8 +78,8 @@ namespace Server.Gumps
|
|||
|
||||
if ( val == null )
|
||||
initialText = "";
|
||||
else if ( val is TextDefinition )
|
||||
initialText = ((TextDefinition)val).GetValue();
|
||||
else if ( val is TextDefinition definition )
|
||||
initialText = definition.GetValue();
|
||||
else
|
||||
initialText = val.ToString();
|
||||
|
||||
|
|
@ -279,4 +279,4 @@ namespace Server.Gumps
|
|||
m_Mobile.SendGump( new PropertiesGump( m_Mobile, m_Object, m_Stack, m_List, m_Page ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue