From: havoc Date: Mon, 4 Oct 2004 14:15:13 +0000 (+0000) Subject: fix a very stupid way of addressing memory which is not 64bit compatible in the mipte... X-Git-Tag: xonotic-v0.1.0preview~5530 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0ffa06db0eaff57f9bc6f6a7c34fd654f9f04cf3;p=xonotic%2Fdarkplaces.git fix a very stupid way of addressing memory which is not 64bit compatible in the miptex reader git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4587 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/wad.c b/wad.c index ed96026d..9886fb20 100644 --- 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;