Merge pull request #5471 from Crazylemon64/vv_list_fix

Reverts to the simpler VV list checker
This commit is contained in:
Fox McCloud
2016-08-17 00:26:11 -04:00
committed by GitHub
+1 -8
View File
@@ -384,16 +384,9 @@ body
html += "</ol>"
else
html += "<ul>"
// First loop to check for associativity
var/associative = FALSE
for(var/entry in L)
if(!(isnum(entry) || isnull(L[entry])))
associative = TRUE
break
// then we do it again! Except now with knowledge of associativity
var/index = 1
for(var/entry in L)
if(associative)
if(istext(entry))
html += debug_variable(entry, L[entry], level + 1)
else
html += debug_variable(index, L[index], level + 1)