mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 03:39:54 +02:00
Merge branch 'master' of github-tomreyn-megaglest:MegaGlest/megaglest-source
This commit is contained in:
@@ -256,7 +256,7 @@ int processMesh(xmlNode *n, FILE *outfile)
|
||||
|
||||
/* populate the MeshHeader structure appropriately */
|
||||
memset(&mh, 0, sizeof(struct MeshHeader));
|
||||
strncpy((char*)mh.name, (char*)xmlGetProp(n, name), NAMESIZE);
|
||||
strncpy((char*)mh.name, (char*)xmlGetProp(n, name), NAMESIZE-1);
|
||||
mh.frameCount = (uint32)atoi((char*)xmlGetProp(n, frameCount));
|
||||
mh.vertexCount = (uint32)atoi((char*)xmlGetProp(n, vertexCount));
|
||||
mh.indexCount = (uint32)atoi((char*)xmlGetProp(n, indexCount));
|
||||
|
Reference in New Issue
Block a user