Fixes an SQDL2 runtime error (#49327)

If you tried to call SQDL with " at the end, it would throw eg WHERE var="something"
This commit is contained in:
MrPerson
2020-02-14 18:38:08 +01:00
committed by GitHub
parent 42028d706b
commit 75133d1bc7
+1 -1
View File
@@ -1176,7 +1176,7 @@ GLOBAL_DATUM_INIT(sdql2_vv_statobj, /obj/effect/statclick/SDQL2_VV_all, new(null
char = query_text[i]
if(char == "\"")
if(query_text[i + length(char)] == "'")
if((i + length(char) <= len) && query_text[i + length(char)] == "'")
word += "\""
i += length(query_text[i + length(char)])