From b97f172e948872cfe1bf030f95ff50e5d0b2a1bc Mon Sep 17 00:00:00 2001 From: sanine-a Date: Mon, 23 Nov 2020 02:07:49 -0600 Subject: fix bug in mesh loading --- src/mesh/mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesh') diff --git a/src/mesh/mesh.c b/src/mesh/mesh.c index 2f3b330..68e39d7 100644 --- a/src/mesh/mesh.c +++ b/src/mesh/mesh.c @@ -111,7 +111,7 @@ static void process_nodes_recursively(lua_State* L, struct aiMesh* assimp_mesh = scene->mMeshes[node->mMeshes[i]]; *mesh = assimp_to_honey_mesh(assimp_mesh, scene); lua_rawseti(L, -2, *n_meshes); - *n_meshes++; + (*n_meshes)++; } for (int i=0; imNumChildren; i++) { -- cgit v1.2.1