Fixed potential endless-loop in id generation

This commit is contained in:
DarthAffe committed 2022-11-14 19:20:13 +01:00
1 parent 8adeaab54d
commit a2646ae43c
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ public static class IdGenerator
{
mappedId = id;
int mappingCounter = 1;
while (_registeredIds.Contains(id))
while (_registeredIds.Contains(mappedId))
mappedId = $"{id} ({++mappingCounter})";
_registeredIds.Add(mappedId);