mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Add an ASSERT_GUARD for World:update, catching any errors occuring there
This commit is contained in:
@@ -39,7 +39,7 @@ int w_World_update(lua_State *L)
|
|||||||
{
|
{
|
||||||
World *t = luax_checkworld(L, 1);
|
World *t = luax_checkworld(L, 1);
|
||||||
float dt = (float)luaL_checknumber(L, 2);
|
float dt = (float)luaL_checknumber(L, 2);
|
||||||
t->update(dt);
|
ASSERT_GUARD(t->update(dt);)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user