Sanity for funtimes

This commit is contained in:
Chris
2015-01-06 14:46:36 -06:00
parent 4e98e6d977
commit a6c108fcaa
11 changed files with 28 additions and 14 deletions

View File

@@ -28,7 +28,7 @@
if(!istype(L, /list)) return
if(isnum(pos))
if(!value)
if(L.len >= pos)
if(L.len >= pos && !(pos > L.len))
return L[pos]
else
if(L.len >= pos)