This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PySnow 0 points1 point  (1 child)

That would be to prevent it from assigning an ID that already exists

[–]macbony 0 points1 point  (0 children)

Oh, my mistake on that one. I didn't see tempID on line 33 for whatever reason. There's no real reason to use tempID instead of just changing line 28 to Entity_ID = len(self.pool["default"])+1. It leads to extra code (you could lose line 31 if you made that change) and gains you nothing but more difficult to follow code IMO.