Explorar el Código

Always use protection

Bill Meltsner hace 14 años
padre
commit
cb6bde5ad7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/modules/physics/box2d/wrap_Physics.h

+ 1 - 1
src/modules/physics/box2d/wrap_Physics.h

@@ -45,7 +45,7 @@
 #include "wrap_WheelJoint.h"
 #include "wrap_RopeJoint.h"
 
-#define ASSERT_GUARD(A) try { A } catch (love::Exception & e) { return luaL_error(L, e.what()); }
+#define ASSERT_GUARD(A) try { A } catch (love::Exception & e) { return luaL_error(L, "%s", e.what()); }
 
 namespace love
 {