fix: NullReference in ChampionTileInfo (#1258)

This commit is contained in:
Mink80 2022-11-22 05:35:45 +01:00 committed by GitHub
parent 1f778cfacf
commit 654f96c44e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}