]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a very stupid way of addressing memory which is not 64bit compatible in the mipte...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 14:15:13 +0000 (14:15 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 14:15:13 +0000 (14:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4587 d7cf8633-e32d-0410-b094-e92efae38249

wad.c

diff --git a/wad.c b/wad.c
index ed96026da875db20a503812baf47af1670480c84..9886fb20f9070d98c0823282807ddbd97df09aa1 100644 (file)
--- a/wad.c
+++ b/wad.c
@@ -209,7 +209,7 @@ qbyte *W_ConvertWAD3Texture(miptex_t *tex)
        qbyte *in, *data, *out, *pal;
        int d, p;
 
-       in = (qbyte *)((int) tex + tex->offsets[0]);
+       in = (qbyte *)tex + tex->offsets[0];
        data = out = Mem_Alloc(tempmempool, tex->width * tex->height * 4);
        if (!data)
                return NULL;