fix: NullReference in ChampionTileInfo (#1258)
This commit is contained in:
parent
1f778cfacf
commit
654f96c44e
1 changed files with 2 additions and 2 deletions
|
|
@ -120,7 +120,7 @@ namespace Server.Mobiles
|
|||
|
||||
public int GetValue(int index)
|
||||
{
|
||||
if (index < 0 || index >= m_Values.Length)
|
||||
if (index < 0 || index >= m_Values?.Length)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -130,7 +130,7 @@ namespace Server.Mobiles
|
|||
|
||||
public DateTime GetLastDecay(int index)
|
||||
{
|
||||
if (index < 0 || index >= m_Values.Length)
|
||||
if (index < 0 || index >= m_Values?.Length)
|
||||
{
|
||||
return DateTime.MinValue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue