Commits

Alex Szpakowski  committed b3dee6a

Fixed an uncaught exception in World:translateOrigin

  • Participants
  • Parent commits d6bb63e
  • Branches box2d-2.3

Comments (0)

Files changed (1)

File src/modules/physics/box2d/wrap_World.cpp

 	World *t = luax_checkworld(L, 1);
 	float arg1 = (float)luaL_checknumber(L, 2);
 	float arg2 = (float)luaL_checknumber(L, 3);
-	t->translateOrigin(arg1, arg2);
+	EXCEPT_GUARD(t->translateOrigin(arg1, arg2);)
 	return 0;
 }