Fix Pass:translate;

This commit is contained in:
bjorn 2022-06-04 11:28:31 -07:00
parent e07a2691e0
commit 3013567e73
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ static int l_lovrPassOrigin(lua_State* L) {
static int l_lovrPassTranslate(lua_State* L) {
float translation[4];
Pass* pass = luax_checktype(L, 2, Pass);
luax_readvec3(L, 1, translation, NULL);
Pass* pass = luax_checktype(L, 1, Pass);
luax_readvec3(L, 2, translation, NULL);
lovrPassTranslate(pass, translation);
return 0;
}