From ca48ec221ddf9ac4350a3c5c45d3cae839b990e4 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sat, 24 Feb 2018 13:11:43 +0200 Subject: [PATCH] Fix a crash in shisensho. See https://github.com/shlomif/PySolFC/issues/54 . Thanks to @lufebe16 for the report and the fix. --- pysollib/games/mahjongg/shisensho.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysollib/games/mahjongg/shisensho.py b/pysollib/games/mahjongg/shisensho.py index 9e8198df..7486b90a 100644 --- a/pysollib/games/mahjongg/shisensho.py +++ b/pysollib/games/mahjongg/shisensho.py @@ -349,7 +349,7 @@ class AbstractShisenGame(AbstractMahjonggGame): self.cols = [[] for i in range(cols)] cl = range(cols) if dx > 0: - cl.reverse() + cl = reversed(cl) for col in cl: for row in range(rows): x = l.XM + dxx + col * cardw