Fix setColorWrite(bool) variant;

This commit is contained in:
bjorn 2022-08-26 22:23:13 -07:00
parent 7aebde2f92
commit e402f02918
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ static int l_lovrPassSetColor(lua_State* L) {
static int l_lovrPassSetColorWrite(lua_State* L) {
Pass* pass = luax_checktype(L, 1, Pass);
bool r, g, b, a;
if (lua_gettop(L) <= 1) {
if (lua_gettop(L) <= 2) {
r = g = b = a = lua_toboolean(L, 2);
} else {
r = lua_toboolean(L, 2);