Add an ASSERT_GUARD for World:update, catching any errors occuring there

This commit is contained in:
Bart van Strien
2012-08-28 17:47:23 +02:00
parent c4133f2489
commit 8234e71c74
+1 -1
View File
@@ -39,7 +39,7 @@ int w_World_update(lua_State *L)
{
World *t = luax_checkworld(L, 1);
float dt = (float)luaL_checknumber(L, 2);
t->update(dt);
ASSERT_GUARD(t->update(dt);)
return 0;
}