diff pytouhou/vm/anmrunner.py @ 129:284ac8f97a96

Fix potential crash
author Thibaut Girka <thib@sitedethib.com>
date Sat, 10 Sep 2011 18:33:45 +0200
parents 174324a4da51
children e7902309305c
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