Przeglądaj źródła

default inputStateTokens in case controlManager is deleted before ever enabled

Joe Shochet 18 lat temu
rodzic
commit
eb08ce9e17
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      direct/src/controls/ControlManager.py

+ 1 - 0
direct/src/controls/ControlManager.py

@@ -23,6 +23,7 @@ class ControlManager:
 
     def __init__(self, enable=True):
         assert self.notify.debugCall(id(self))
+        self.inputStateTokens = []
         self.controls = {}
         self.currentControls = None
         self.currentControlsName = None