defines math (#33498)

This commit is contained in:
Emmett Gaines
2017-12-17 11:02:11 -05:00
committed by Jordan Brown
parent c4062c9af5
commit 25080ff2c4
180 changed files with 577 additions and 655 deletions
+1 -1
View File
@@ -435,7 +435,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]