Fix CA2208

This commit is contained in:
RoosterDragon
2023-11-14 19:54:51 +00:00
committed by Gustas
parent f6614c1c58
commit 3ae617c55b

View File

@@ -187,7 +187,7 @@ namespace OpenRA.Mods.Cnc.Traits
{
var tooltip = target.TraitsImplementing<ITooltip>().FirstEnabledTraitOrDefault();
if (tooltip == null)
throw new ArgumentNullException("tooltip", "Missing tooltip or invalid target.");
throw new ArgumentException("Missing tooltip or invalid target.", nameof(target));
AsPlayer = tooltip.Owner;
AsActor = target.Info;