From f4dbf0db9522533d282caefcb336af3a2e4848e2 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Tue, 1 Nov 2005 19:47:47 +0000 Subject: [PATCH] 5+2==7 :-) --- code/renderer/tr_image.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/renderer/tr_image.c b/code/renderer/tr_image.c index 8967e022..15d6c7ec 100644 --- a/code/renderer/tr_image.c +++ b/code/renderer/tr_image.c @@ -1154,11 +1154,11 @@ static void LoadTGA ( const char *name, byte **pic, int *width, int *height) memcpy(&targa_header.colormap_index, &buf_p[3], 2); memcpy(&targa_header.colormap_length, &buf_p[5], 2); - targa_header.colormap_size = buf_p[8]; - memcpy(&targa_header.x_origin, &buf_p[9], 2); - memcpy(&targa_header.y_origin, &buf_p[11], 2); - memcpy(&targa_header.width, &buf_p[13], 2); - memcpy(&targa_header.height, &buf_p[15], 2); + targa_header.colormap_size = buf_p[7]; + memcpy(&targa_header.x_origin, &buf_p[8], 2); + memcpy(&targa_header.y_origin, &buf_p[10], 2); + memcpy(&targa_header.width, &buf_p[12], 2); + memcpy(&targa_header.height, &buf_p[14], 2); targa_header.pixel_size = buf_p[16]; targa_header.attributes = buf_p[17];