diff --git a/engine/client/wad.c b/engine/client/wad.c index d9e84d25d..6491f66e3 100644 --- a/engine/client/wad.c +++ b/engine/client/wad.c @@ -384,7 +384,7 @@ qbyte *W_ConvertWAD3Texture(miptex_t *tex, int *width, int *height, qboolean *us if (!data) return NULL; - in = (qbyte *)((int) tex + tex->offsets[0]); + in = (qbyte *)tex + tex->offsets[0]; *width = tex->width; *height = tex->height;