aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/renderer/tr_image_pcx.c1
1 files changed, 1 insertions, 0 deletions
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