Browse Source

Fixed print in SCCD_execute; still broken

Yentl Van Tendeloo 8 years ago
parent
commit
153178f0a4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      models/SCCD_execute.alc

+ 2 - 1
models/SCCD_execute.alc

@@ -18,9 +18,10 @@ Void function print_states(model : Element, data : Element):
 	String state
 
 	log("Current states:")
-	classes = set_copy(data["classes"])
+	classes = dict_keys(data["classes"])
 	while (set_len(classes) > 0):
 		class = set_pop(classes)
+		class = data["classes"][class]
 		log(string_join(string_join(string_join("  ", class["ID"]), " : "), read_attribute(model, class["type"], "name")))
 		log("	Attributes: " + dict_to_string(class["attributes"]))