Avoid duplicate groups id.

This commit is contained in:
Khopa
2020-08-04 01:08:27 +02:00
parent a76962e206
commit 9d4d3d0523
2 changed files with 8 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
from dcs.mapping import Point
import uuid
NAME_BY_CATEGORY = {
"power": "Power plant",
@@ -70,6 +71,7 @@ class TheaterGroundObject:
groups = []
obj_name = ""
sea_object = False
uuid = uuid.uuid1()
def __init__(self, category: str):
self.category = category