Fix indexing vectors with uppercase W.

This commit is contained in:
Petri Häkkinen 2021-11-17 09:48:48 +02:00
parent 2317b0911f
commit cf53beb648

View file

@ -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