Fix duplicate ActorIDs

This commit is contained in:
Chris Harris
2021-07-16 12:27:15 -05:00
committed by abcdefg30
parent 627fd4e68b
commit 1c6ca394c1
2 changed files with 4 additions and 2 deletions

View File

@@ -126,11 +126,13 @@ namespace OpenRA.Mods.Common.Widgets.Logic
}
// Check for duplicate actor ID
if (CurrentActor.ID.Equals(actorId, StringComparison.OrdinalIgnoreCase))
if (!CurrentActor.ID.Equals(actorId, StringComparison.OrdinalIgnoreCase))
{
if (editorActorLayer[actorId] != null)
{
nextActorIDStatus = ActorIDStatus.Duplicate;
actorIDErrorLabel.Text = "Duplicate ActorID";
actorIDErrorLabel.Visible = true;
return;
}
}