Commits

Alex Szpakowski committed 137a371

Fixed an uncaught exception in Mesh:getVertexMap

  • Participants
  • Parent commits c3dcedf
  • Branches Mesh

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/wrap_Mesh.cpp

 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);