Fix Target.Invalid comparion bug in AutoTarget

This commit is contained in:
dnqbob
2023-09-01 14:28:48 +08:00
committed by Gustas
parent f4c186b7a6
commit 809cb16075

View File

@@ -258,7 +258,7 @@ namespace OpenRA.Mods.Common.Traits
{
var autoTarget = ScanForTarget(self, AllowMove, true);
if (autoTarget != Target.Invalid)
if (autoTarget.Type != TargetType.Invalid)
attacker = autoTarget.Actor;
}