mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Second oops.
git-svn-id: https://svn.eduke32.com/eduke32@740 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
551937fbc5
commit
710c131835
1 changed files with 3 additions and 3 deletions
|
@ -1356,9 +1356,9 @@ static md3model *md3load(int fil)
|
|||
for (surfi--;surfi>=0;surfi--) free(m->head.surfs[surfi].tris);
|
||||
if (m->head.tags) free(m->head.tags); free(m->head.frames); free(m); return(0);
|
||||
}
|
||||
s->shaders = (md3shader_t *)(((int)s->tris)+leng[0]);
|
||||
s->uv = (md3uv_t *)(((int)s->shaders)+leng[1]);
|
||||
s->xyzn = (md3xyzn_t *)(((int)s->uv)+leng[2]);
|
||||
s->shaders = (md3shader_t *)(((intptr_t)s->tris)+leng[0]);
|
||||
s->uv = (md3uv_t *)(((intptr_t)s->shaders)+leng[1]);
|
||||
s->xyzn = (md3xyzn_t *)(((intptr_t)s->uv)+leng[2]);
|
||||
|
||||
klseek(fil,offs[0],SEEK_SET); kread(fil,s->tris ,leng[0]);
|
||||
klseek(fil,offs[1],SEEK_SET); kread(fil,s->shaders,leng[1]);
|
||||
|
|
Loading…
Reference in a new issue