From 0ffa06db0eaff57f9bc6f6a7c34fd654f9f04cf3 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 4 Oct 2004 14:15:13 +0000 Subject: [PATCH] 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 --- wad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2