diff --git a/lamps/LampGroup.py b/lamps/LampGroup.py index 4bbbef6..f21c152 100644 --- a/lamps/LampGroup.py +++ b/lamps/LampGroup.py @@ -28,7 +28,7 @@ class LampGroup: self.currentLampPtr += 1 def deactivateCurrent(self): - self.lamps[self.currentLamp].deactivate() + self.lamps[self.currentLampPtr].deactivate() if self.currentLampPtr == 0: return