Fix number * vector.

This commit is contained in:
Petri Häkkinen 2021-11-16 13:28:27 +02:00
parent 72009dd5be
commit 2317b0911f

View file

@ -1646,7 +1646,7 @@ static void luau_execute(lua_State* L)
float vb = cast_to(float, nvalue(rb));
const float* vc = rc->value.v;
for (int i = 0; i < LUA_VECTOR_SIZE; i++)
ra->value.v[i] = vb + vc[i];
ra->value.v[i] = vb * vc[i];
setttype(ra, LUA_TVECTOR);
VM_NEXT();
}