# HG changeset patch # User Emmanuel Gil Peyrot # Date 1319623419 25200 # Node ID 68e6d3faeee66afde5a72d42cf9662eabe103fc0 # Parent 54eb6b254b7b6f88ed95acfe1a7d5f920b841648 Don’t reinitialize variables when another sub is called. diff --git a/pytouhou/vm/eclrunner.py b/pytouhou/vm/eclrunner.py --- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -439,9 +439,8 @@ class ECLRunner(object): self.sub = sub self.frame = 0 self.instruction_pointer = 0 - self.variables = [param1, 0, 0, 0, - param2, 0., 0., 0., - 0, 0, 0, 0] + self.variables[0] = param1 + self.variables[1] = param2 @instruction(36)