Fixed two crashes

This commit is contained in:
hondacrx
2021-09-04 20:53:47 -04:00
parent cdd34e644a
commit 4c08eebc49
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2804,7 +2804,7 @@ namespace Game.AI
if (baseObject != null)
{
var stored = GetStoredTargetList(e.Target.stored.id, baseObject);
if (!stored.Empty())
if (stored != null)
targets.AddRange(stored);
}
+1 -1
View File
@@ -170,6 +170,6 @@ namespace Game.Entities
uint _id;
TrainerType _type;
List<TrainerSpell> _spells;
Array<string> _greeting = new((int)Locale.Total);
string[] _greeting = new string[(int)Locale.Total];
}
}