changeset 129:284ac8f97a96

Fix potential crash
author Thibaut Girka <thib@sitedethib.com>
date Sat, 10 Sep 2011 18:33:45 +0200
parents 8ba018617829
children 11ab06f4c4c6
files pytouhou/vm/anmrunner.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/vm/anmrunner.py
+++ b/pytouhou/vm/anmrunner.py
@@ -58,7 +58,7 @@ class ANMRunner(object):
                 try:
                     callback = self._handlers[opcode]
                 except KeyError:
-                    logger.warn('unhandled opcode %d (args: %r)', instr_type, args)
+                    logger.warn('unhandled opcode %d (args: %r)', opcode, args)
                 else:
                     callback(self, *args)
                     sprite._changed = True