1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00

Fix number + lightuserdata binary vector ops;

This commit is contained in:
bjorn 2023-07-03 19:17:09 -07:00
parent c5afb32ad2
commit fd0d3fc1ec

View file

@ -323,7 +323,7 @@ static int l_lovrLightUserdata__index(lua_State* L) {
static int l_lovrLightUserdataOp(lua_State* L) {
VectorType type;
if (!luax_tovector(L, 1, &type)) {
if (!luax_tovector(L, lua_islightuserdata(L, 1) ? 1 : 2, &type)) {
lua_pushliteral(L, "__tostring");
if (lua_rawequal(L, -1, lua_upvalueindex(1))) {
lua_pop(L, 1);