Code: Select all
line 26: for i = 1 , glob.fieldcount , 1 do -- run trough all field-entities
line 36: glob.fieldcount = glob.fieldcount-1
"all three expressions are evaluated once, before the loop starts"
-http://www.lua.org/pil/4.3.4.html