Fix SQVector member access check

This commit is contained in:
Alexander 'z33ky' Hirsch 2025-06-24 20:54:01 +02:00
parent 9c740a891e
commit 503fdd2ee3

View File

@ -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);
}