Fix #27912: crash after mesh.materials.pop().

This commit is contained in:
2011-07-11 09:08:08 +00:00
parent 8ca556a32a
commit 7dfe34864e

View File

@@ -550,7 +550,7 @@ Material *material_pop_id(ID *id, int index)
Material **mat;
if(index + 1 != (*totcol))
memmove((*matar), (*matar) + 1, (*totcol) - (index + 1));
memmove((*matar), (*matar) + 1, sizeof(void *) * ((*totcol) - (index + 1)));
(*totcol)--;