From: Eric S. Raymond Date: Thu, 20 Jul 2017 15:15:15 +0000 (-0400) Subject: Fix invalid variable reuse. X-Git-Tag: 1.3~34 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=4da9742cd28e87ea91d3a7b75e3d7147011b95e7;p=open-adventure.git Fix invalid variable reuse. --- 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: