mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-07-27 07:31:49 +03:00
Fix SQVector member access check
This commit is contained in:
parent
9c740a891e
commit
503fdd2ee3
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user