Skip to content

Commit

Permalink
byte-order swap fix
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5662 e016b1c5-ed68-44aa-a2f7-31cac88cffde
  • Loading branch information
Glen Masgai committed Aug 20, 2010
1 parent 6af2e3c commit d548942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/md3.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ struct md3 : vertmodel
m.tcverts = new tcvert[m.numverts];
f->seek(mesh_offset + mheader.ofs_uv , SEEK_SET);
f->read(m.tcverts, 2*sizeof(float)*m.numverts); // read the UV data
lilswap((float *)m.tcverts, sizeof(float)*2*m.numverts);
lilswap(&m.tcverts[0].u, 2*m.numverts);

m.verts = new vec[numframes*m.numverts + 1];
f->seek(mesh_offset + mheader.ofs_vertices, SEEK_SET);
Expand Down

0 comments on commit d548942

Please sign in to comment.