fix: Fixes NPE in champ titles (#1434)

This commit is contained in:
Kamron Batman 2023-07-28 00:39:10 -07:00 • committed by GitHub
parent 51ecee6caa
commit 6547239fa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 9 deletions

View file

@ -352,7 +352,7 @@ public partial class ChampionTitleContext
for (var i = 0; i < ChampionSpawnInfo.Table.Length; i++)
{
ref var title = ref GetTitleValueRef(ChampionSpawnInfo.Table[i].Type);
if (Unsafe.IsNullRef(ref title))
if (Unsafe.IsNullRef(ref title) || title == null)
{
continue;
}