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:
@@ -111,7 +111,7 @@ int w_World_translateOrigin(lua_State *L)
|
||||
int w_World_setSleepingAllowed(lua_State *L)
|
||||
{
|
||||
World *t = luax_checkworld(L, 1);
|
||||
bool b = luax_toboolean(L, 2);
|
||||
bool b = luax_checkboolean(L, 2);
|
||||
t->setSleepingAllowed(b);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user