From 4da9742cd28e87ea91d3a7b75e3d7147011b95e7 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 20 Jul 2017 11:15:15 -0400 Subject: [PATCH] Fix invalid variable reuse. --- make_dungeon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make_dungeon.py b/make_dungeon.py index ddbfc2e..b378563 100755 --- a/make_dungeon.py +++ b/make_dungeon.py @@ -384,8 +384,8 @@ def get_objects(obj): if labels: global statedefines statedefines += "/* States for %s */\n" % item[0] - for (i, label) in enumerate(labels): - statedefines += "#define %s\t%d\n" % (label, i) + for (j, label) in enumerate(labels): + statedefines += "#define %s\t%d\n" % (label, j) statedefines += "\n" sounds_str = "" if attr.get("sounds") == None: -- 2.31.1