1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-15 02:54:09 -04:00

Fix a crash in shisensho.

See https://github.com/shlomif/PySolFC/issues/54 . Thanks to @lufebe16
for the report and the fix.
This commit is contained in:
Shlomi Fish 2018-02-24 13:11:43 +02:00
parent 9ad8650dd3
commit ca48ec221d

View file

@ -349,7 +349,7 @@ class AbstractShisenGame(AbstractMahjonggGame):
self.cols = [[] for i in range(cols)] self.cols = [[] for i in range(cols)]
cl = range(cols) cl = range(cols)
if dx > 0: if dx > 0:
cl.reverse() cl = reversed(cl)
for col in cl: for col in cl:
for row in range(rows): for row in range(rows):
x = l.XM + dxx + col * cardw x = l.XM + dxx + col * cardw