PLCGenerator.py
changeset 1358 fe7770a30527
parent 1322 0a9227f743b3
child 1418 c97dc5281419
--- a/PLCGenerator.py	Thu Oct 10 17:43:11 2013 +0200
+++ b/PLCGenerator.py	Fri Oct 11 08:54:50 2013 +0200
@@ -326,7 +326,7 @@
             configuration.remove(extra_global_vars)
         else:
             for variable in extra_variables:
-                varlists[-1][1].remove(variable)
+                varlists[-1][0].remove(variable)
         
         # Generate any resource in the configuration
         for resource in configuration.getresource():