diff --git a/sp/src/vscript/vscript_squirrel.cpp b/sp/src/vscript/vscript_squirrel.cpp index 8cbcb35e..0664fea8 100644 --- a/sp/src/vscript/vscript_squirrel.cpp +++ b/sp/src/vscript/vscript_squirrel.cpp @@ -352,7 +352,7 @@ namespace SQVector return sq_throwerror(vm, "Expected Vector._get(string)"); } - if (key[0] < 'x' || key['0'] > 'z' || key[1] != '\0') + if (key[0] < 'x' || key[0] > 'z' || key[1] != '\0') { return sqstd_throwerrorf(vm, "the index '%.50s' does not exist", key); } @@ -378,7 +378,7 @@ namespace SQVector return sq_throwerror(vm, "Expected Vector._set(string)"); } - if (key[0] < 'x' || key['0'] > 'z' || key[1] != '\0') + if (key[0] < 'x' || key[0] > 'z' || key[1] != '\0') { return sqstd_throwerrorf(vm, "the index '%.50s' does not exist", key); }