summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgenerator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator.py b/generator.py
index dd89f4f..d0519ec 100755
--- a/generator.py
+++ b/generator.py
@@ -174,7 +174,7 @@ class Tableau:
self.revertToLen(len(self.tableau) - 1)
while not self.increment():
del self.tableau[-1]
- if len(self.tableau) == 0:
+ if len(self.tableau) == 1:
exit() # Iteration Complete
self.revertToLen(len(self.tableau) - 1)
del self.tableau[-2]