summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-11-23 02:07:49 -0600
committersanine-a <sanine.not@pm.me>2020-11-23 02:07:49 -0600
commitb97f172e948872cfe1bf030f95ff50e5d0b2a1bc (patch)
tree4281b319ac62799253d1974a50e3015b3d11b25f /src
parent7bdeedd394e4b51d4c2ef4a0dd0470ed0492ac5f (diff)
fix bug in mesh loading
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++) {