From 710c1318359ecfd970c918d6bb515e3b3b83206f Mon Sep 17 00:00:00 2001 From: plagman Date: Sat, 24 May 2008 08:21:53 +0000 Subject: [PATCH] Second oops. git-svn-id: https://svn.eduke32.com/eduke32@740 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/mdsprite.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/build/src/mdsprite.c b/polymer/build/src/mdsprite.c index 3978961fa..ec4f88639 100644 --- a/polymer/build/src/mdsprite.c +++ b/polymer/build/src/mdsprite.c @@ -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]);