fix vecn.normalize
This commit is contained in:
parent
ce1ece5eb9
commit
ce9c5b97c7
@ -52,8 +52,8 @@ static int l_unaryop(lua::State* L) {
|
|||||||
lua::rawseti(L, i+1);
|
lua::rawseti(L, i+1);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
case 3:
|
case 2:
|
||||||
return lua::setvec(L, 3, vec);
|
return lua::setvec(L, 2, vec);
|
||||||
default: {
|
default: {
|
||||||
throw std::runtime_error("invalid arguments number (1 or 2 expected)");
|
throw std::runtime_error("invalid arguments number (1 or 2 expected)");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user