diff --git a/gymnasium/wrappers/vector/rendering.py b/gymnasium/wrappers/vector/rendering.py index 31c739cf4..afe674e67 100644 --- a/gymnasium/wrappers/vector/rendering.py +++ b/gymnasium/wrappers/vector/rendering.py @@ -201,4 +201,5 @@ def close(self): pygame.display.quit() pygame.quit() + self.window = None # try to prevent strange Python 3.8 bug, later complaining about no self.window super().close()