check for currentControls before getIsAirborne()

This commit is contained in:
Josh Wilson 2007-09-19 17:46:42 +00:00
parent e30a7a481e
commit cd3c0ae1c0

View File

@ -159,7 +159,9 @@ class ControlManager:
return self.currentControls.getSpeeds()
def getIsAirborne(self):
return self.currentControls.getIsAirborne()
if self.currentControls:
return self.currentControls.getIsAirborne()
return False
def setTag(self, key, value):
assert self.notify.debugCall(id(self))