mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Functions that take a boolean argument now properly type-check for it.
--HG-- branch : minor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user