Makes the thing SLIGHTLY more robust. Not impossible to fool, though

This commit is contained in:
Crazylemon64
2016-08-14 11:06:00 -07:00
parent 01d4de04ac
commit 1bba2ba41f
+3 -1
View File
@@ -385,8 +385,10 @@ body
else
html += "<ul>"
var/index = 1
var/associative = FALSE
for(var/entry in L)
if(!isnum(entry) && !isnull(L[entry]))
if(!(isnum(entry) || (isnull(L[entry]) && !associative)))
associative = TRUE
html += debug_variable(entry, L[entry], level + 1)
else
html += debug_variable(index, L[index], level + 1)