library: Copy all material with NE_MaterialTexClone()

Previously it only copied the texture, not the material properties or
the palette.
This commit is contained in:
Antonio Niño Díaz 2022-10-25 23:43:20 +01:00
parent 65bdac84a5
commit ae650b6bab

View File

@ -406,7 +406,7 @@ void NE_MaterialTexClone(NE_Material *source, NE_Material *dest)
"No texture asigned to source material");
// Increase count of materials using this texture
NE_Texture[source->texindex].uses++;
dest->texindex = source->texindex;
memcpy(dest, source, sizeof(NE_Material));
}
void NE_MaterialTexSetPal(NE_Material *tex, NE_Palette *pal)