From 809c425fd55ce5e1f3a5fe3b39d4a97c24849555 Mon Sep 17 00:00:00 2001 From: ludwig Date: Thu, 14 Feb 2008 13:30:32 +0000 Subject: make the pcx decode actually work git-svn-id: svn://svn.icculus.org/quake3/trunk@1262 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/renderer/tr_image_pcx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'code') diff --git a/code/renderer/tr_image_pcx.c b/code/renderer/tr_image_pcx.c index 2f062f2..db407de 100644 --- a/code/renderer/tr_image_pcx.c +++ b/code/renderer/tr_image_pcx.c @@ -91,6 +91,7 @@ void R_LoadPCX ( const char *filename, byte **pic, int *width, int *height) w = LittleShort(pcx->xmax)+1; h = LittleShort(pcx->ymax)+1; + size = w*h; if (pcx->manufacturer != 0x0a || pcx->version != 5 -- cgit v1.2.3