mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
fix vecn.normalize
This commit is contained in:
parent
ce1ece5eb9
commit
ce9c5b97c7
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ static int l_unaryop(lua::State* L) {
|
|||
lua::rawseti(L, i+1);
|
||||
}
|
||||
return 1;
|
||||
case 3:
|
||||
return lua::setvec(L, 3, vec);
|
||||
case 2:
|
||||
return lua::setvec(L, 2, vec);
|
||||
default: {
|
||||
throw std::runtime_error("invalid arguments number (1 or 2 expected)");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue