defines math

This commit is contained in:
ninjanomnom
2017-11-22 17:36:58 -05:00
parent 92632ecd76
commit 2817a1737b
178 changed files with 544 additions and 611 deletions
+1 -1
View File
@@ -429,7 +429,7 @@
else if(expression[start + 1] == "\[" && islist(v))
var/list/L = v
var/index = SDQL_expression(source, expression[start + 2])
if(isnum(index) && (!IsInteger(index) || L.len < index))
if(isnum(index) && (!ISINTEGER(index) || L.len < index))
to_chat(usr, "<span class='danger'>Invalid list index: [index]</span>")
return null
return L[index]