Browse Source

Fixed an uncaught exception in Mesh:getVertexMap

--HG--
branch : Mesh
Alex Szpakowski 12 years ago
parent
commit
d161d5c0fc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/modules/graphics/opengl/wrap_Mesh.cpp

+ 2 - 1
src/modules/graphics/opengl/wrap_Mesh.cpp

@@ -169,8 +169,9 @@ int w_Mesh_setVertexMap(lua_State *L)
 int w_Mesh_getVertexMap(lua_State *L)
 {
 	Mesh *t = luax_checkmesh(L, 1);
+	const uint32 *vertex_map = 0;
 
-	const uint32 *vertex_map = t->getVertexMap();
+	EXCEPT_GUARD(vertex_map = t->getVertexMap();)
 	size_t elements = t->getVertexMapCount();
 
 	lua_createtable(L, elements, 0);