off by one in relativeDelay sync code

This commit is contained in:
Damien Elmes 2011-02-07 00:04:39 +09:00
parent ff38dad5b2
commit 07db17be88

View file

@ -542,8 +542,8 @@ from cards where id in %s""" % ids2str(ids)))
return return
# FIXME: older clients won't send this, so this is temp compat code # FIXME: older clients won't send this, so this is temp compat code
def getType(row): def getType(row):
if len(row) > 37: if len(row) > 36:
return row[37] return row[36]
if row[15]: if row[15]:
return 1 return 1
elif row[14]: elif row[14]: