summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesh/mesh.c2
1 files changed, 1 insertions, 1 deletions
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; i<node->mNumChildren; i++) {