mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix indexing vectors with uppercase W.
This commit is contained in:
parent
2317b0911f
commit
cf53beb648
1 changed files with 2 additions and 1 deletions
|
@ -602,7 +602,8 @@ static void luau_execute(lua_State* L)
|
||||||
int ic = (name[0] | ' ') - 'x';
|
int ic = (name[0] | ' ') - 'x';
|
||||||
|
|
||||||
#ifdef LUA_FLOAT4_VECTORS
|
#ifdef LUA_FLOAT4_VECTORS
|
||||||
if(name[0] == 'w')
|
// 'w' is before 'x' in ascii, so ic is -1 when the string is 'w'
|
||||||
|
if (ic == -1)
|
||||||
ic = 3;
|
ic = 3;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue