Functions that take a boolean argument now properly type-check for it.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-08-14 22:56:20 -03:00
parent fea9f82cfa
commit fee157b6b9
21 changed files with 50 additions and 42 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ int w_Contact_setRestitution(lua_State *L)
int w_Contact_setEnabled(lua_State *L)
{
Contact *t = luax_checkcontact(L, 1);
bool e = luax_toboolean(L, 2);
bool e = luax_checkboolean(L, 2);
t->setEnabled(e);
return 0;
}