diff pytouhou/formats/anm0.py @ 111:340fcda8e64a

Fix a few, minor things
author Thibaut Girka <thib@sitedethib.com>
date Tue, 06 Sep 2011 21:28:44 +0200
parents f5f9b5eb69a3
children e7902309305c
line wrap: on
line diff
--- a/pytouhou/formats/anm0.py
+++ b/pytouhou/formats/anm0.py
@@ -105,8 +105,8 @@ class Animations(object):
             while True:
                 #TODO
                 instruction_offsets.append(file.tell() - offset)
-                time, opcode, length = unpack('<HBB', file.read(4))
-                data = file.read(length)
+                time, opcode, size = unpack('<HBB', file.read(4))
+                data = file.read(size)
                 if opcode in cls._instructions:
                     args = unpack('<%s' % cls._instructions[opcode][0], data)
                 else: