Skip to content
Snippets Groups Projects
Commit 17e7aea3 authored by MIDIMan's avatar MIDIMan
Browse files

Fix clang build error (hopefully)

parent 543004b5
No related branches found
No related tags found
1 merge request!2382Add 'alpha' field to objects
...@@ -739,6 +739,7 @@ static int mobj_set(lua_State *L) ...@@ -739,6 +739,7 @@ static int mobj_set(lua_State *L)
break; break;
} }
case mobj_alpha: case mobj_alpha:
{
INT32 alpha = (INT32)luaL_checkinteger(L, 3); INT32 alpha = (INT32)luaL_checkinteger(L, 3);
if (alpha < 0) if (alpha < 0)
alpha = 0; alpha = 0;
...@@ -746,6 +747,7 @@ static int mobj_set(lua_State *L) ...@@ -746,6 +747,7 @@ static int mobj_set(lua_State *L)
alpha = FRACUNIT; alpha = FRACUNIT;
mo->alpha = alpha; mo->alpha = alpha;
break; break;
}
case mobj_bnext: case mobj_bnext:
return NOSETPOS; return NOSETPOS;
case mobj_bprev: case mobj_bprev:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment