Fixed another crash, and enabled tilelist reading again.

This commit is contained in:
hondacrx
2022-07-25 14:38:31 -04:00
parent d76b8b7751
commit cea897a772
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -126,8 +126,8 @@ namespace Game.Conditions
return false;
}
Player player = obj.ToPlayer();
Unit unit = obj.ToUnit();
Player player = obj?.ToPlayer();
Unit unit = obj?.ToUnit();
switch (ConditionType)
{